Table of Contents

Class ReadCommandOperation<TCommandResult>

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

Represents a read command operation.

[Obsolete("This class will be made internal in a later release.")]
public class ReadCommandOperation<TCommandResult> : CommandOperationBase<TCommandResult>, IReadOperation<TCommandResult>, IRetryableReadOperation<TCommandResult>, IExecutableInRetryableReadContext<TCommandResult>

Type Parameters

TCommandResult

The type of the command result.

Inheritance
CommandOperationBase<TCommandResult>
ReadCommandOperation<TCommandResult>
Implements
IReadOperation<TCommandResult>
IRetryableReadOperation<TCommandResult>
Inherited Members
Extension Methods

Constructors

ReadCommandOperation(DatabaseNamespace, BsonDocument, IBsonSerializer<TCommandResult>, MessageEncoderSettings)

Initializes a new instance of the ReadCommandOperation<TCommandResult> class.

Properties

RetryRequested

Gets or sets a value indicating whether to retry.

Methods

Execute(IReadBinding, CancellationToken)

Executes the operation.

Execute(RetryableReadContext, CancellationToken)

Executes the first attempt.

ExecuteAsync(IReadBinding, CancellationToken)

Executes the operation.

ExecuteAsync(RetryableReadContext, CancellationToken)

Executes the first attempt.

ExecuteAttempt(RetryableReadContext, int, long?, CancellationToken)

Executes the first attempt.

ExecuteAttemptAsync(RetryableReadContext, int, long?, CancellationToken)

Executes the first attempt.