Table of Contents

Class RetryableWriteCommandOperationBase

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

Represents a base class for a delete, insert or update command operation.

public abstract class RetryableWriteCommandOperationBase : IWriteOperation<BsonDocument>, IRetryableWriteOperation<BsonDocument>, IExecutableInRetryableWriteContext<BsonDocument>
Inheritance
RetryableWriteCommandOperationBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

RetryableWriteCommandOperationBase(DatabaseNamespace, MessageEncoderSettings)

Initializes a new instance of the RetryableWriteCommandOperationBase class.

Properties

Comment

Gets or sets the comment.

DatabaseNamespace

Gets the database namespace.

IsOrdered

Gets or sets a value indicating whether the server should process the requests in order.

MaxBatchCount

Gets or sets the maximum batch count.

MessageEncoderSettings

Gets the message encoder settings.

RetryRequested

Gets or sets a value indicating whether retry is enabled for the operation.

WriteConcern

Gets or sets the write concern.

Methods

CreateCommand(ICoreSessionHandle, int, long?)

Creates the command.

CreateCommandPayloads(IChannelHandle, int)

Creates the command payloads.

Execute(IWriteBinding, CancellationToken)

Executes the operation.

Execute(RetryableWriteContext, CancellationToken)

Executes the first attempt.

ExecuteAsync(IWriteBinding, CancellationToken)

Executes the operation.

ExecuteAsync(RetryableWriteContext, CancellationToken)

Executes the first attempt.

ExecuteAttempt(RetryableWriteContext, int, long?, CancellationToken)

Executes the first attempt.

ExecuteAttemptAsync(RetryableWriteContext, int, long?, CancellationToken)

Executes the first attempt.