Share via


CachingBotDataStoreConsistencyPolicy Enum

Definition

The data consistency policy for CachingBotDataStore

public enum CachingBotDataStoreConsistencyPolicy
type CachingBotDataStoreConsistencyPolicy = 
Public Enum CachingBotDataStoreConsistencyPolicy
Inheritance
CachingBotDataStoreConsistencyPolicy

Fields

Name Value Description
LastWriteWins 0

Causes CachingBotDataStore to set ETag to "*" when it flushes the data to storage. As a result last write will overwrite the data.

ETagBasedConsistency 1

Causes CachingBotDataStore to write data with the same ETag returned by Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore.inner. As a result FlushAsync(IAddress, CancellationToken) might fail because of ETag inconsistencies.

Applies to