語言

CachingBotDataStoreConsistencyPolicy 列舉

定義

資料一致性政策 CachingBotDataStore

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

欄位

名稱 值 Description
LastWriteWins 0

當資料排入儲存時,會被 CachingBotDataStore 設定 ETag 為「*」。 因此,最後一次寫入會覆蓋資料。

ETagBasedConsistency 1

導致 CachingBotDataStore 以相同 ETagMicrosoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore.inner返回的資料 。 因此,可能會 FlushAsync(IAddress, CancellationToken) 因 ETag 不一致而失敗。

適用於