Пример #1
0
        private async Task CreateTableAndWaitAsync()
        {
            await _booksTableManager.CreateBooksTableAsync();

            await _booksTableManager.WaitUntilBooksTableReadyAsync();

            var table = await _booksTableManager.DescribeBooksTableAsync();

            Console.WriteLine();
            Console.ForegroundColor = ConsoleColor.DarkGreen;
            Console.WriteLine(JsonConvert.SerializeObject(table, Formatting.Indented));
            Console.ForegroundColor = ForegroundColor;
        }
Пример #2
0
        private async Task CreateTableAndWaitAsync()
        {
            await _booksTableManager.CreateBooksTableAsync();

            await _booksTableManager.WaitUntilBooksTableReadyAsync();

            var table = await _booksTableManager.DescribeBooksTableAsync();

            Console.WriteLine();
            Console.ForegroundColor = ConsoleColor.DarkGreen;
            Console.WriteLine(JsonSerializer.Serialize(table, new JsonSerializerOptions {
                WriteIndented = true
            }));
            Console.ForegroundColor = ForegroundColor;
        }