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
collectionNamespaceCollectionNamespaceThe collection namespace.
deletesBatchableSource<DeleteRequest>The deletes.
messageEncoderSettingsMessageEncoderSettingsThe 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
sessionICoreSessionHandleThe session.
attemptintThe attempt.
transactionNumberlong?The transaction number.
Returns
- BsonDocument
A command.
CreateCommandPayloads(IChannelHandle, int)
Creates the command payloads.
protected override IEnumerable<Type1CommandMessageSection> CreateCommandPayloads(IChannelHandle channel, int attempt)
Parameters
channelIChannelHandleThe channel.
attemptintThe attempt.
Returns
- IEnumerable<Type1CommandMessageSection>
The command payloads.