Table of Contents

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 IWriteBinding

The binding.

retryRequested bool

if set to true [retry requested].

cancellationToken CancellationToken

The cancellation token.

Returns

RetryableWriteContext

A retryable write context.