public ExecuteAsync ( AmazonDynamoDBCallback callback, |
||
callback | AmazonDynamoDBCallback | The callback that will be invoked when the asynchronous operation completes. |
asyncOptions | An instance of AsyncOptions that specifies how the async method should be executed. | |
리턴 | void |
public void ExecuteAsync(AmazonDynamoDBCallback callback, AsyncOptions asyncOptions = null)
{
asyncOptions = asyncOptions ?? new AsyncOptions();
DynamoDBAsyncExecutor.ExecuteAsync(
() => { ExecuteHelper(true); },
asyncOptions,
callback);
}
/// <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)); }