Method ExecuteAsync
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
ExecuteAsync(IReadBinding, CancellationToken)
Executes the operation.
public Task<TCommandResult> ExecuteAsync(IReadBinding binding, CancellationToken cancellationToken)Parameters
- bindingIReadBinding
- The binding. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task<TCommandResult>
- A Task whose result is the result of the operation. 
ExecuteAsync(RetryableReadContext, CancellationToken)
Executes the first attempt.
public Task<TCommandResult> ExecuteAsync(RetryableReadContext context, CancellationToken cancellationToken)Parameters
- contextRetryableReadContext
- The context. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task<TCommandResult>
- The result.