/// <summary> /// Creates an instance of the <see cref="IBotDataStore{T}"/> that uses the azure table storage. /// </summary> /// <param name="storageAccount">The storage account.</param> /// <param name="tableName">The name of table.</param> public TableBotDataStore(storage.CloudStorageAccount storageAccount, string tableName = "botdata") { var tableClient = storageAccount.CreateCloudTableClient(); this.Table = tableClient.GetTableReference(tableName); lock (checkedTables) { if (!checkedTables.Contains(tableName)) { this.Table.CreateIfNotExists(); checkedTables.Add(tableName); } } }
/// <summary> /// Creates an instance of the <see cref="IBotDataStore{T}"/> that uses the azure table storage. /// </summary> /// <param name="storageAccount">The storage account.</param> /// <param name="tableName">The name of table.</param> public TableBotDataStore2(storage.CloudStorageAccount storageAccount) { tableClient = storageAccount.CreateCloudTableClient(); }