Table of Contents

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 IWriteBinding

The binding.

retryRequested bool

if set to true [retry requested].

cancellationToken CancellationToken

The cancellation token.

Returns

Task<RetryableWriteContext>

A retryable write context.