Class AsyncCursor<TDocument>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents an async cursor.
Type Parameters
TDocument
The type of the documents.
- Inheritance
-
AsyncCursor<TDocument>
- Implements
-
IAsync
Cursor <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.
- Post
Batch Resume Token Gets the post batch resume token.
- Was
First Batch Empty Gets a value indicating whether the first batch was empty or not.
Methods
- Close(Cancellation
Token) Closes the cursor.
- Close
Async(Cancellation Token) Closes the cursor.
- Dispose(bool)
Releases unmanaged and - optionally - managed resources.
- Move
Next(Cancellation Token) Moves to the next batch of documents.
- Move
Next Async(Cancellation Token) Moves to the next batch of documents.