Method ExecuteAttempt
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
ExecuteAttempt(RetryableWriteContext, int, long?, CancellationToken)
Executes the first attempt.
public BsonDocument ExecuteAttempt(RetryableWriteContext context, int attempt, long? transactionNumber, CancellationToken cancellationToken)
Parameters
context
RetryableWriteContextThe context.
attempt
intThe attempt.
transactionNumber
long?The transaction number.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- BsonDocument
The result.