Table of Contents

Method Execute

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

Execute(IReadBinding, CancellationToken)

Executes the operation.

public IAsyncCursor<TDocument> Execute(IReadBinding binding, CancellationToken cancellationToken = default)

Parameters

binding IReadBinding

The binding.

cancellationToken CancellationToken

The cancellation token.

Returns

IAsyncCursor<TDocument>

The result of the operation.

Execute(RetryableReadContext, CancellationToken)

Executes the first attempt.

public IAsyncCursor<TDocument> Execute(RetryableReadContext context, CancellationToken cancellationToken = default)

Parameters

context RetryableReadContext

The context.

cancellationToken CancellationToken

The cancellation token.

Returns

IAsyncCursor<TDocument>

The result.