Constructor DeferredAsyncCursor
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
ActionThe 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.