Method Execute
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Execute(IReadBinding, CancellationToken)
Executes the operation.
public IAsyncCursor<TResult> Execute(IReadBinding binding, CancellationToken cancellationToken)
Parameters
binding
IReadBindingThe binding.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<TResult>
The result of the operation.
Execute(RetryableReadContext, CancellationToken)
Executes the first attempt.
public IAsyncCursor<TResult> Execute(RetryableReadContext context, CancellationToken cancellationToken)
Parameters
context
RetryableReadContextThe context.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<TResult>
The result.