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
binding
IReadBindingThe binding.
retryRequested
boolif set to
true
[retry requested].cancellationToken
CancellationTokenThe cancellation token.
Returns
- RetryableReadContext
A retryable read context.