Click or drag to resize

FindCommandOperationTDocumentExecuteAsync Method (RetryableReadContext, CancellationToken)

Executes the first attempt.

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public Task<IAsyncCursor<TDocument>> ExecuteAsync(
	RetryableReadContext context,
	CancellationToken cancellationToken = null
)

Parameters

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

Return Value

Type: TaskIAsyncCursorTDocument
The result.

Implements

IExecutableInRetryableReadContextTResultExecuteAsync(RetryableReadContext, CancellationToken)
See Also