Method ExecuteAttemptAsync
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
ExecuteAttemptAsync(RetryableReadContext, int, long?, CancellationToken)
Executes the first attempt.
public Task<TCommandResult> ExecuteAttemptAsync(RetryableReadContext context, int attempt, long? transactionNumber, CancellationToken cancellationToken)
Parameters
context
RetryableReadContextThe context.
attempt
intThe attempt.
transactionNumber
long?The transaction number.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<TCommandResult>
The result.