Table of Contents

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 IReadBinding

The binding.

retryRequested bool

if set to true [retry requested].

cancellationToken CancellationToken

The cancellation token.

Returns

RetryableReadContext

A retryable read context.