CachingBotDataStoreConsistencyPolicy 枚举

定义

的数据一致性策略 CachingBotDataStore

public enum CachingBotDataStoreConsistencyPolicy
type CachingBotDataStoreConsistencyPolicy = 
Public Enum CachingBotDataStoreConsistencyPolicy
继承
CachingBotDataStoreConsistencyPolicy

字段

名称 说明
ETagBasedConsistency 1

导致CachingBotDataStore使用 返回Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore.inner的相同ETag写入数据。 因此 FlushAsync(IAddress, CancellationToken) ,由于 ETag 不一致,可能会失败。

LastWriteWins 0

导致 CachingBotDataStore 在将数据刷新到存储时设置为 ETag “*”。 因此,上次写入将覆盖数据。

适用于