ElmcityUtils.TableStorage.CreateTable C# (CSharp) Method

CreateTable() public method

public CreateTable ( string tablename ) : TableStorageHttpResponse
tablename string
return TableStorageHttpResponse
        public TableStorageHttpResponse CreateTable(string tablename)
        {
            var completed_delegate = new GenUtils.Actions.CompletedDelegate<TableStorageHttpResponse, Object>(CompletedIfCreated);
            return GenUtils.Actions.Retry<TableStorageHttpResponse>(delegate() { return MaybeCreateTable(tablename); }, completed_delegate, completed_delegate_object: null, wait_secs: StorageUtils.wait_secs, max_tries: StorageUtils.max_tries, timeout_secs: StorageUtils.timeout_secs);
        }

Usage Example

Beispiel #1
0
 public void CreateTableIsSuccessful()
 {
     ts.DeleteTable(test_table);
     HttpUtils.Wait(long_wait);
     ts.CreateTable(test_table);
     HttpUtils.Wait(short_wait);
     Assert.IsTrue((bool)ts.ExistsTable(test_table).boolean);
 }
All Usage Examples Of ElmcityUtils.TableStorage::CreateTable