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

Volitile in-memory implementation of IBotDataStore<BotData> More...

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

Public Member Functions

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

Volitile in-memory implementation of IBotDataStore<BotData>

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

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: