Interface IRetryableWriteOperation<TResult>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents a retryable write operation.
public interface IRetryableWriteOperation<TResult> : IExecutableInRetryableWriteContext<TResult>Type Parameters
- TResult
- The type of the result. 
- Inherited Members
Properties
WriteConcern
Gets the write concern for the operation.
WriteConcern WriteConcern { get; }Property Value
Methods
ExecuteAttempt(RetryableWriteContext, int, long?, CancellationToken)
Executes the first attempt.
TResult ExecuteAttempt(RetryableWriteContext context, int attempt, long? transactionNumber, CancellationToken cancellationToken)Parameters
- contextRetryableWriteContext
- The context. 
- attemptint
- The attempt. 
- transactionNumberlong?
- The transaction number. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- TResult
- The result. 
ExecuteAttemptAsync(RetryableWriteContext, int, long?, CancellationToken)
Executes the first attempt.
Task<TResult> ExecuteAttemptAsync(RetryableWriteContext context, int attempt, long? transactionNumber, CancellationToken cancellationToken)Parameters
- contextRetryableWriteContext
- The context. 
- attemptint
- The attempt. 
- transactionNumberlong?
- The transaction number. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task<TResult>
- The result.