Esempio n. 1
0
            private async Task DisposeAsync()
            {
                var tables = await _provider.ListTablesAsync();

                Task[] tasks = Array.ConvertAll(tables, table => table.DeleteIfExistsAsync());
                await Task.WhenAll(tasks);
            }
Esempio n. 2
0
            public static async Task <EpochTableIterator> NewAsync(ILogTableProvider tableLookup)
            {
                Dictionary <long, CloudTable> d = new Dictionary <long, CloudTable>();

                var tables = await tableLookup.ListTablesAsync();

                foreach (var table in tables)
                {
                    var epoch = TimeBucket.GetEpochNumberFromTable(table);
                    d[epoch] = table;
                }
                return(new EpochTableIterator(d));
            }