Click or drag to resize

RetryableWriteCommandOperationBase.ExecuteAttempt Method

Executes the first attempt.

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public BsonDocument ExecuteAttempt(
	RetryableWriteContext context,
	int attempt,
	Nullable<long> transactionNumber,
	CancellationToken cancellationToken
)

Parameters

context
Type: MongoDB.Driver.Core.Operations.RetryableWriteContext
The context.
attempt
Type: System.Int32
The attempt.
transactionNumber
Type: System.Nullable<Int64>
The transaction number.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: BsonDocument
The result.

Implements

IRetryableWriteOperation<TResult>.ExecuteAttempt(RetryableWriteContext, Int32, Nullable<Int64>, CancellationToken)
See Also