Microsoft.Bot.Builder.Azure.TableBotDataStore Class Reference

IBotDataStore<T> Implementation using Azure Storage Table More...

Inheritance diagram for Microsoft.Bot.Builder.Azure.TableBotDataStore:

Public Member Functions

 TableBotDataStore (string connectionString, string tableName="botdata")
 Creates an instance of the IBotDataStore<T> that uses the azure table storage. More...
 
 TableBotDataStore (CloudStorageAccount storageAccount, string tableName="botdata")
 Creates an instance of the IBotDataStore<T> that uses the azure table storage. More...
 
 TableBotDataStore (CloudTable table)
 Creates an instance of the IBotDataStore<T> that uses the azure table storage. More...
 
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...
 

Properties

CloudTable Table [get]
 The CloudTable. More...
 

Detailed Description

IBotDataStore<T> Implementation using Azure Storage Table

Definition at line 56 of file TableBotDataStore.cs.

Constructor & Destructor Documentation

Microsoft.Bot.Builder.Azure.TableBotDataStore.TableBotDataStore ( string  connectionString,
string  tableName = "botdata" 
)
inline

Creates an instance of the IBotDataStore<T> that uses the azure table storage.

Parameters
connectionStringThe storage connection string.
tableNameThe name of table.

Definition at line 65 of file TableBotDataStore.cs.

Microsoft.Bot.Builder.Azure.TableBotDataStore.TableBotDataStore ( CloudStorageAccount  storageAccount,
string  tableName = "botdata" 
)
inline

Creates an instance of the IBotDataStore<T> that uses the azure table storage.

Parameters
storageAccountThe storage account.
tableNameThe name of table.

Definition at line 75 of file TableBotDataStore.cs.

Microsoft.Bot.Builder.Azure.TableBotDataStore.TableBotDataStore ( CloudTable  table)
inline

Creates an instance of the IBotDataStore<T> that uses the azure table storage.

Parameters
tableThe cloud table.

Definition at line 94 of file TableBotDataStore.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

Property Documentation

CloudTable Microsoft.Bot.Builder.Azure.TableBotDataStore.Table
get

The CloudTable.

Definition at line 102 of file TableBotDataStore.cs.


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