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