Table of Contents

Class RetryableDeleteCommandOperation

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

Represents a delete command operation.

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

Constructors

RetryableDeleteCommandOperation(CollectionNamespace, BatchableSource<DeleteRequest>, MessageEncoderSettings)

Initializes a new instance of the RetryableDeleteCommandOperation class.

public RetryableDeleteCommandOperation(CollectionNamespace collectionNamespace, BatchableSource<DeleteRequest> deletes, MessageEncoderSettings messageEncoderSettings)

Parameters

collectionNamespace CollectionNamespace

The collection namespace.

deletes BatchableSource<DeleteRequest>

The deletes.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.

Properties

CollectionNamespace

Gets the collection namespace.

public CollectionNamespace CollectionNamespace { get; }

Property Value

CollectionNamespace

The collection namespace.

Deletes

Gets the deletes.

public BatchableSource<DeleteRequest> Deletes { get; }

Property Value

BatchableSource<DeleteRequest>

The deletes.

Let

Gets or sets the let document.

public BsonDocument Let { get; set; }

Property Value

BsonDocument

The let document.

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.