public ExecuteAsync ( AmazonDynamoDBCallback callback, AsyncOptions asyncOptions = null ) : void | ||
callback | AmazonDynamoDBCallback | The callback that will be invoked when the asynchronous operation completes. |
asyncOptions | AsyncOptions | An instance of AsyncOptions that specifies how the async method should be executed. |
return | void |
public void ExecuteAsync(AmazonDynamoDBCallback callback, AsyncOptions asyncOptions = null)
{
asyncOptions = asyncOptions ?? new AsyncOptions();
DynamoDBAsyncExecutor.ExecuteAsync(
() => { ExecuteHelper(true); },
asyncOptions,
callback);
}
/// <summary> /// Issues a batch-write request with multiple batches. /// </summary> /// <param name="batches"> /// Configured BatchWrite 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 ExecuteBatchWriteAsync(BatchWrite[] batches, CancellationToken cancellationToken = default(CancellationToken)) { MultiTableBatchWrite superBatch = new MultiTableBatchWrite(batches); return(superBatch.ExecuteAsync(cancellationToken)); }