Method ExecuteAsync
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
ExecuteAsync(IWriteBinding, CancellationToken)
Executes the operation.
public Task<TResult> ExecuteAsync(IWriteBinding binding, CancellationToken cancellationToken)
Parameters
binding
IWriteBindingThe binding.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<TResult>
A Task whose result is the result of the operation.
ExecuteAsync(RetryableWriteContext, CancellationToken)
Executes the first attempt.
public Task<TResult> ExecuteAsync(RetryableWriteContext context, CancellationToken cancellationToken)
Parameters
context
RetryableWriteContextThe context.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<TResult>
The result.