Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore Class Reference

Caches data for BotDataBase<T> and wraps the data in BotData to be stored in CachingBotDataStore.inner More...

Inheritance diagram for Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore:

Public Member Functions

 CachingBotDataStore (IBotDataStore< BotData > inner, CachingBotDataStoreConsistencyPolicy dataConsistencyPolicy)
 
Task SaveAsync (IAddress key, BotStoreType botStoreType, T data, CancellationToken cancellationToken)
 Save a BotData using the ETag. Etag consistency checks If ETag is null or empty, this will set the value if nobody has set it yet If ETag is "*" then this will unconditionally set the value If ETag matches then this will update the value if it is unchanged. If Data is null this removes record, otherwise it stores More...
 

Detailed Description

Caches data for BotDataBase<T> and wraps the data in BotData to be stored in CachingBotDataStore.inner

Definition at line 271 of file Microsoft.Bot.Builder/ConnectorEx/BotData.cs.

Constructor & Destructor Documentation

Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore.CachingBotDataStore ( IBotDataStore< BotData inner,
CachingBotDataStoreConsistencyPolicy  dataConsistencyPolicy 
)
inline

Member Function Documentation

Task Microsoft.Bot.Builder.Dialogs.Internals.IBotDataStore< T >.SaveAsync ( IAddress  key,
BotStoreType  botStoreType,
data,
CancellationToken  cancellationToken 
)
inherited

Save a BotData using the ETag. Etag consistency checks If ETag is null or empty, this will set the value if nobody has set it yet If ETag is "*" then this will unconditionally set the value If ETag matches then this will update the value if it is unchanged. If Data is null this removes record, otherwise it stores

Parameters
keyThe key.
botStoreTypeThe bot store type.
dataThe data that should be saved.
cancellationTokenThe cancellation token.
Returns
throw HttpException(HttpStatusCode.PreconditionFailed) if update fails

The documentation for this class was generated from the following file: