Exemple #1
0
        private Task <TableResultSegment> DownloadTablesSegment(Task <TableResultSegment> tableSegment, string urlFilterPattern)
        {
            foreach (CloudTable cloudTable in tableSegment.Result.Results)
            {
                _tableTasks.QueueTaskAction(() => EnumerateTableRecords(cloudTable, urlFilterPattern));
            }

            return(tableSegment);
        }
        private async Task <TableResultSegment> DownloadTablesSegmentAsync(Task <TableResultSegment> tableSegment, string urlFilterPattern)
        {
            await tableSegment.ConfigureAwait(false);

            foreach (CloudTable cloudTable in tableSegment.Result.Results)
            {
                _tableTasks.QueueTaskAction(() => EnumerateTableRecords(cloudTable, urlFilterPattern));
            }

            return(tableSegment.Result);
        }