Table of Contents

Method CreateAsync

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

CreateAsync(IReadBinding, bool, CancellationToken)

Creates and initializes a retryable read operation context.

public static Task<RetryableReadContext> CreateAsync(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

Task<RetryableReadContext>

A retryable read context.