Class AsyncCursor<TDocument>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents an async cursor.
public class AsyncCursor<TDocument> : IAsyncCursor<TDocument>, IDisposable
Type Parameters
TDocument
The type of the documents.
- Inheritance
-
AsyncCursor<TDocument>
- Implements
-
IAsyncCursor<TDocument>
- Inherited Members
- Extension Methods
Constructors
- AsyncCursor(IChannelSource, CollectionNamespace, BsonDocument, IReadOnlyList<TDocument>, long, BsonDocument, int?, int?, IBsonSerializer<TDocument>, MessageEncoderSettings, TimeSpan?)
Initializes a new instance of the AsyncCursor<TDocument> class.
- AsyncCursor(IChannelSource, CollectionNamespace, BsonDocument, IReadOnlyList<TDocument>, long, int?, int?, IBsonSerializer<TDocument>, MessageEncoderSettings, TimeSpan?)
Initializes a new instance of the AsyncCursor<TDocument> class.
- AsyncCursor(IChannelSource, CollectionNamespace, BsonValue, IReadOnlyList<TDocument>, long, BsonDocument, int?, int?, IBsonSerializer<TDocument>, MessageEncoderSettings, TimeSpan?)
Initializes a new instance of the AsyncCursor<TDocument> class.
- AsyncCursor(IChannelSource, CollectionNamespace, BsonValue, IReadOnlyList<TDocument>, long, int?, int?, IBsonSerializer<TDocument>, MessageEncoderSettings, TimeSpan?)
Initializes a new instance of the AsyncCursor<TDocument> class.
Properties
- Current
Gets the current batch of documents.
- PostBatchResumeToken
Gets the post batch resume token.
- WasFirstBatchEmpty
Gets a value indicating whether the first batch was empty or not.
Methods
- Close(CancellationToken)
Closes the cursor.
- CloseAsync(CancellationToken)
Closes the cursor.
- Dispose(bool)
Releases unmanaged and - optionally - managed resources.
- MoveNext(CancellationToken)
Moves to the next batch of documents.
- MoveNextAsync(CancellationToken)
Moves to the next batch of documents.