public ChatBackup(CloudStorageAccount storageAccount) { var client = storageAccount.CreateCloudTableClient(); _table = client.GetTableReference("Chat"); _table.CreateIfNotExists(); _iDbService = new DbService(); _retryPolicy = _iDbService.GetRetryPolicy(); }
public PostBackup(CloudStorageAccount storageAccount, string endpointUrl, string authorizationKey) { _iDbService = new DbService(endpointUrl,authorizationKey); CloudTableClient c = storageAccount.CreateCloudTableClient(); _table = c.GetTableReference("Post"); _table.CreateIfNotExists(); _retryPolicy = _iDbService.GetRetryPolicy(); }