Class FindAndModifyOperationBase<TResult>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents a base class for find and modify operations.
[Obsolete("This class will be made internal in a later release.")]
public abstract class FindAndModifyOperationBase<TResult> : IWriteOperation<TResult>, IRetryableWriteOperation<TResult>, IExecutableInRetryableWriteContext<TResult>
Type Parameters
TResult
The type of the result.
- Inheritance
-
FindAndModifyOperationBase<TResult>
- Implements
-
IWriteOperation<TResult>IRetryableWriteOperation<TResult>IExecutableInRetryableWriteContext<TResult>
- Derived
- Inherited Members
- Extension Methods
Constructors
- FindAndModifyOperationBase(CollectionNamespace, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the FindAndModifyOperationBase<TResult> class.
Properties
- Collation
Gets or sets the collation.
- CollectionNamespace
Gets the collection namespace.
- Comment
Gets or sets the comment.
- MessageEncoderSettings
Gets the message encoder settings.
- ResultSerializer
Gets the result serializer.
- RetryRequested
Gets or sets whether the operation can be retried.
- WriteConcern
Gets or sets the write concern.
Methods
- 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.
- GetCommandValidator()
Gets the command validator.