Method CreateAsync
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
CreateAsync(IReadBinding, bool, CancellationToken)
Creates and initializes a retryable read operation context.
public static Task<RetryableReadContext> CreateAsync(IReadBinding binding, bool retryRequested, CancellationToken cancellationToken)
Parameters
binding
IReadBindingThe binding.
retryRequested
boolif set to
true
[retry requested].cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<RetryableReadContext>
A retryable read context.