Table of Contents

Constructor DeferredAsyncCursor

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

DeferredAsyncCursor(Action, Func<CancellationToken, IAsyncCursor<TDocument>>, Func<CancellationToken, Task<IAsyncCursor<TDocument>>>)

Initializes a new instance of the DeferredAsyncCursor<TDocument> class.

public DeferredAsyncCursor(Action disposeAction, Func<CancellationToken, IAsyncCursor<TDocument>> execute, Func<CancellationToken, Task<IAsyncCursor<TDocument>>> executeAsync)

Parameters

disposeAction Action

The dispose action.

execute Func<CancellationToken, IAsyncCursor<TDocument>>

The delegate to execute the first time MoveNext is called.

executeAsync Func<CancellationToken, Task<IAsyncCursor<TDocument>>>

The delegate to execute the first time MoveNextAsync is called.