Method ExecuteAttemptAsync
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
ExecuteAttemptAsync(RetryableWriteContext, int, long?, CancellationToken)
Executes the first attempt.
public Task<BsonDocument> ExecuteAttemptAsync(RetryableWriteContext context, int attempt, long? transactionNumber, CancellationToken cancellationToken)
Parameters
contextRetryableWriteContextThe context.
attemptintThe attempt.
transactionNumberlong?The transaction number.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<BsonDocument>
The result.