Table of Contents

Class RetryableUpdateCommandOperation

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

Represents an update command operation.

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

Constructors

RetryableUpdateCommandOperation(CollectionNamespace, BatchableSource<UpdateRequest>, MessageEncoderSettings)

Initializes a new instance of the RetryableUpdateCommandOperation class.

public RetryableUpdateCommandOperation(CollectionNamespace collectionNamespace, BatchableSource<UpdateRequest> updates, MessageEncoderSettings messageEncoderSettings)

Parameters

collectionNamespace CollectionNamespace

The collection namespace.

updates BatchableSource<UpdateRequest>

The updates.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.

Properties

BypassDocumentValidation

Gets or sets a value indicating whether to bypass document validation.

public bool? BypassDocumentValidation { get; set; }

Property Value

bool?

A value indicating whether to bypass document validation.

CollectionNamespace

Gets the collection namespace.

public CollectionNamespace CollectionNamespace { get; }

Property Value

CollectionNamespace

The collection namespace.

Let

Gets or sets the let document.

public BsonDocument Let { get; set; }

Property Value

BsonDocument

The let document.

Updates

Gets the updates.

public BatchableSource<UpdateRequest> Updates { get; }

Property Value

BatchableSource<UpdateRequest>

The updates.

Methods

CreateCommand(ICoreSessionHandle, int, long?)

Creates the command.

protected override BsonDocument CreateCommand(ICoreSessionHandle session, int attempt, long? transactionNumber)

Parameters

session ICoreSessionHandle

The session.

attempt int

The attempt.

transactionNumber long?

The transaction number.

Returns

BsonDocument

A command.

CreateCommandPayloads(IChannelHandle, int)

Creates the command payloads.

protected override IEnumerable<Type1CommandMessageSection> CreateCommandPayloads(IChannelHandle channel, int attempt)

Parameters

channel IChannelHandle

The channel.

attempt int

The attempt.

Returns

IEnumerable<Type1CommandMessageSection>

The command payloads.