Exemple #1
0
        public async Task CreateTableAsync()
        {
            TableHandler <Item> requestHandler = new TableHandler <Item>(TableName, new ItemConverterItem());
            await requestHandler.CreateTableAsync();

            Console.WriteLine("Table Created");
        }
Exemple #2
0
        public async Task ClasstimeCreateTable()
        {
            TableHandler <Classtime> requestHandler = new TableHandler <Classtime>(TableNameClasstime, new ItemConverterClasstime());
            await requestHandler.CreateTableAsync();

            Console.WriteLine("Table Created");
        }
Exemple #3
0
        private async Task RemakeTableAsync()
        {
            TableHandler <Item> requestHandler = new TableHandler <Item>(TableName, new ItemConverterItem());

            await requestHandler.DeleteTableAsync();

            await requestHandler.WaitTillTableExists(false);

            Console.WriteLine("Table Doesn't Exist Anymore");

            await requestHandler.CreateTableAsync();

            await requestHandler.WaitTillTableIsStatus(TableStatus.ACTIVE);

            Console.WriteLine("Table Is Active");

            Item item = new Item()
            {
                id = "idfoo", number = 430
            };
            await requestHandler.AddItemAsync(item);

            Console.WriteLine("Items Added");
        }