语言

CachingBotDataStoreConsistencyPolicy 枚举

定义

数据一致性策略 CachingBotDataStore

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

字段

名称 值 说明
LastWriteWins 0

当数据刷新到存储时,会导致 CachingBotDataStore 设置为 ETag “*”。 因此,最后一次写入会覆盖数据。

ETagBasedConsistency 1

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

适用于