Table of Contents

Interface IReadOperation<TResult>

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

Represents a database read operation.

public interface IReadOperation<TResult>

Type Parameters

TResult

The type of the result.

Extension Methods

Methods

Execute(IReadBinding, CancellationToken)

Executes the operation.

TResult Execute(IReadBinding binding, CancellationToken cancellationToken)

Parameters

binding IReadBinding

The binding.

cancellationToken CancellationToken

The cancellation token.

Returns

TResult

The result of the operation.

ExecuteAsync(IReadBinding, CancellationToken)

Executes the operation.

Task<TResult> ExecuteAsync(IReadBinding binding, CancellationToken cancellationToken)

Parameters

binding IReadBinding

The binding.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<TResult>

A Task whose result is the result of the operation.