Method Create
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Create(IWriteBinding, bool, CancellationToken)
Creates and initializes a retryable write operation context.
public static RetryableWriteContext Create(IWriteBinding binding, bool retryRequested, CancellationToken cancellationToken)
Parameters
binding
IWriteBindingThe binding.
retryRequested
boolif set to
true
[retry requested].cancellationToken
CancellationTokenThe cancellation token.
Returns
- RetryableWriteContext
A retryable write context.