Exemplo n.º 1
0
 public ChatBackup(CloudStorageAccount storageAccount)
 {
     var client = storageAccount.CreateCloudTableClient();
     _table = client.GetTableReference("Chat");
     _table.CreateIfNotExists();
     _iDbService = new DbService();
     _retryPolicy = _iDbService.GetRetryPolicy();
 }
Exemplo n.º 2
0
 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();
 }