internal void ExecuteHelper(bool isAsync)
        {
            MultiBatchGet resultsObject = new MultiBatchGet
            {
                Batches = new List <DocumentBatchGet> {
                    this
                }
            };

            var results = resultsObject.GetItemsHelper(isAsync);

            Results = results[TargetTable.TableName];
        }
Exemplo n.º 2
0
        internal async Task ExecuteHelperAsync(CancellationToken cancellationToken)
        {
            MultiBatchGet resultsObject = new MultiBatchGet
            {
                Batches = Batches
            };

            var results = await resultsObject.GetItemsHelperAsync(cancellationToken).ConfigureAwait(false);

            foreach (var batch in Batches)
            {
                List <Document> batchResults;
                if (results.TryGetValue(batch.TargetTable.TableName, out batchResults))
                {
                    batch.Results = batchResults;
                }
                else
                {
                    batch.Results = new List <Document>();
                }
            }
        }
Exemplo n.º 3
0
        internal void ExecuteHelper()
        {
            MultiBatchGet resultsObject = new MultiBatchGet
            {
                Batches = Batches
            };

            var results = resultsObject.GetItemsHelper();

            foreach (var batch in Batches)
            {
                List <Document> batchResults;
                if (results.TryGetValue(batch.TargetTable.TableName, out batchResults))
                {
                    batch.Results = batchResults;
                }
                else
                {
                    batch.Results = new List <Document>();
                }
            }
        }
Exemplo n.º 4
0
        internal void ExecuteHelper()
        {
            MultiBatchGet resultsObject = new MultiBatchGet
            {
                Batches = new List <DocumentBatchGet> {
                    this
                }
            };

            var results = resultsObject.GetItemsHelper();

            List <Document> batchResults;

            if (results.TryGetValue(TargetTable.TableName, out batchResults))
            {
                Results = batchResults;
            }
            else
            {
                Results = new List <Document>();
            }
        }
Exemplo n.º 5
0
        internal void ExecuteHelper(bool isAsync)
        {
            MultiBatchGet resultsObject = new MultiBatchGet
            {
                Batches = Batches
            };

            var results = resultsObject.GetItemsHelper(isAsync);

            foreach (var batch in Batches)
            {
                List<Document> batchResults;
                if (results.TryGetValue(batch.TargetTable.TableName, out batchResults))
                {
                    batch.Results = batchResults;
                }
                else
                {
                    batch.Results = new List<Document>();
                }
            }
        }
Exemplo n.º 6
0
        internal void ExecuteHelper(bool isAsync)
        {
            MultiBatchGet resultsObject = new MultiBatchGet
            {
                Batches = new List<DocumentBatchGet> { this }
            };

            var results = resultsObject.GetItemsHelper(isAsync);
            Results = results[TargetTable.TableName];
        }