Exemplo n.º 1
0
        internal void ExecuteHelper(bool isAsync)
        {
            MultiTableDocumentBatchGet superBatch = new MultiTableDocumentBatchGet();

            foreach (var batch in allBatches)
            {
                batch.CreateDocumentBatch();
                superBatch.AddBatch(batch.DocumentBatch);
            }
            superBatch.ExecuteHelper(isAsync);

            foreach (var batch in allBatches)
            {
                batch.PopulateResults(batch.DocumentBatch.Results);
            }
        }
Exemplo n.º 2
0
        internal async Task ExecuteHelperAsync(CancellationToken cancellationToken)
        {
            MultiTableDocumentBatchGet superBatch = new MultiTableDocumentBatchGet();

            foreach (var batch in allBatches)
            {
                batch.CreateDocumentBatch();
                superBatch.AddBatch(batch.DocumentBatch);
            }

            await superBatch.ExecuteHelperAsync(cancellationToken).ConfigureAwait(false);

            foreach (var batch in allBatches)
            {
                batch.PopulateResults(batch.DocumentBatch.Results);
            }
        }