Class BatchTransformingAsyncCursor<TFromDocument, TToDocument>

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Represents a cursor that wraps another cursor with a transformation function on the documents.

public sealed class BatchTransformingAsyncCursor<TFromDocument, TToDocument> : IAsyncCursor<TToDocument>, IDisposable

Type Parameters

TFromDocument

The type of from document.

TToDocument

The type of to document.

Inheritance

BatchTransformingAsyncCursor<TFromDocument, TToDocument>

Implements

Inherited Members

Extension Methods

Constructors

BatchTransformingAsyncCursor(IAsyncCursor, Func<IEnumerable, IEnumerable>)

Initializes a new instance of the BatchTransformingAsyncCursor<TFromDocument, TToDocument> 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.

See Also