Class DeferredAsyncCursor

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Represents a cursor for an operation that is not actually executed until MoveNextAsync is called for the first time.

public sealed class DeferredAsyncCursor<TDocument> : IAsyncCursor<TDocument>, IDisposable

Type Parameters

TDocument

The type of the document.

Inheritance

DeferredAsyncCursor

Implements

Inherited Members

Extension Methods

Constructors

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

Initializes a new instance of the DeferredAsyncCursor class.

Properties

Current

Gets the current batch of documents.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

MoveNext(CancellationToken)

Moves to the next batch of documents.

MoveNextAsync(CancellationToken)

Moves to the next batch of documents.