Table of Contents

Class CommandOperationBase<TCommandResult>

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

Represents the base class for a command operation.

public abstract class CommandOperationBase<TCommandResult>

Type Parameters

TCommandResult

The type of the command result.

Inheritance
CommandOperationBase<TCommandResult>
Derived
Inherited Members

Constructors

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

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

Properties

AdditionalOptions

Gets or sets the additional options.

Command

Gets the command.

CommandValidator

Gets or sets the command validator.

Comment

Gets or sets the comment.

DatabaseNamespace

Gets the database namespace.

MessageEncoderSettings

Gets the message encoder settings.

ResultSerializer

Gets the result serializer.

Methods

ExecuteProtocol(IChannelHandle, ICoreSessionHandle, ReadPreference, CancellationToken)

Executes the protocol.

ExecuteProtocol(IChannelSource, ICoreSessionHandle, ReadPreference, CancellationToken)

Executes the protocol.

ExecuteProtocolAsync(IChannelHandle, ICoreSessionHandle, ReadPreference, CancellationToken)

Executes the protocol.

ExecuteProtocolAsync(IChannelSource, ICoreSessionHandle, ReadPreference, CancellationToken)

Executes the protocol.