Table of Contents

Method ExecuteAttemptAsync

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

ExecuteAttemptAsync(RetryableWriteContext, int, long?, CancellationToken)

Executes the first attempt.

public Task<TResult> ExecuteAttemptAsync(RetryableWriteContext context, int attempt, long? transactionNumber, CancellationToken cancellationToken)

Parameters

context RetryableWriteContext

The context.

attempt int

The attempt.

transactionNumber long?

The transaction number.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<TResult>

The result.