ExecuteAsync() public method

Initiates the asynchronous execution of the Execute operation.
public ExecuteAsync ( AmazonDynamoDBCallback callback, AsyncOptions asyncOptions = null ) : void
callback AmazonDynamoDBCallback The callback that will be invoked when the asynchronous operation completes.
asyncOptions Amazon.Runtime.AsyncOptions An instance of AsyncOptions that specifies how the async method should be executed.
return void
Example #1
0
        /// <summary>
        /// Issues a batch-get request with multiple batches.
        ///
        /// Results are stored in the individual batches.
        /// </summary>
        /// <param name="batches">
        /// Configured BatchGet objects
        /// </param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        public Task ExecuteBatchGetAsync(BatchGet[] batches, CancellationToken cancellationToken = default(CancellationToken))
        {
            MultiTableBatchGet superBatch = new MultiTableBatchGet(batches);

            return(superBatch.ExecuteAsync(cancellationToken));
        }