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

implementation of IBotDatStore which uses the State REST API on state.botframework.com to store data More...

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

Public Member Functions

 ConnectorStore (IStateClient stateClient)
 
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

implementation of IBotDatStore which uses the State REST API on state.botframework.com to store data

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

Constructor & Destructor Documentation

Microsoft.Bot.Builder.Dialogs.Internals.ConnectorStore.ConnectorStore ( IStateClient  stateClient)
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: