Click or drag to resize

CountOperationExecuteAsync Method (RetryableReadContext, CancellationToken)

Executes the first attempt.

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public Task<long> ExecuteAsync(
	RetryableReadContext context,
	CancellationToken cancellationToken
)

Parameters

context
Type: MongoDB.Driver.Core.OperationsRetryableReadContext
The context.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskInt64
The result.

Implements

IExecutableInRetryableReadContextTResultExecuteAsync(RetryableReadContext, CancellationToken)
See Also