Method Create
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Create(IReadBinding, bool, CancellationToken)
Creates and initializes a retryable read operation context.
public static RetryableReadContext Create(IReadBinding binding, bool retryRequested, CancellationToken cancellationToken)
Parameters
bindingIReadBindingThe binding.
retryRequestedboolif set to
true[retry requested].cancellationTokenCancellationTokenThe cancellation token.
Returns
- RetryableReadContext
A retryable read context.