Constructor AsyncCursor
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
AsyncCursor(IChannelSource, CollectionNamespace, BsonValue, IReadOnlyList<TDocument>, long, int?, int?, IBsonSerializer<TDocument>, MessageEncoderSettings, TimeSpan?)
Initializes a new instance of the AsyncCursor<TDocument> class.
public AsyncCursor(IChannelSource channelSource, CollectionNamespace collectionNamespace, BsonValue comment, IReadOnlyList<TDocument> firstBatch, long cursorId, int? batchSize, int? limit, IBsonSerializer<TDocument> serializer, MessageEncoderSettings messageEncoderSettings, TimeSpan? maxTime = null)Parameters
- channelSourceIChannelSource
- The channel source. 
- collectionNamespaceCollectionNamespace
- The collection namespace. 
- commentBsonValue
- The comment. 
- firstBatchIReadOnlyList<TDocument>
- The first batch. 
- cursorIdlong
- The cursor identifier. 
- batchSizeint?
- The size of a batch. 
- limitint?
- The limit. 
- serializerIBsonSerializer<TDocument>
- The serializer. 
- messageEncoderSettingsMessageEncoderSettings
- The message encoder settings. 
- maxTimeTimeSpan?
- The maxTime for each batch. 
AsyncCursor(IChannelSource, CollectionNamespace, BsonDocument, IReadOnlyList<TDocument>, long, int?, int?, IBsonSerializer<TDocument>, MessageEncoderSettings, TimeSpan?)
Initializes a new instance of the AsyncCursor<TDocument> class.
[Obsolete("Use overload without query.")]
public AsyncCursor(IChannelSource channelSource, CollectionNamespace collectionNamespace, BsonDocument query, IReadOnlyList<TDocument> firstBatch, long cursorId, int? batchSize, int? limit, IBsonSerializer<TDocument> serializer, MessageEncoderSettings messageEncoderSettings, TimeSpan? maxTime = null)Parameters
- channelSourceIChannelSource
- The channel source. 
- collectionNamespaceCollectionNamespace
- The collection namespace. 
- queryBsonDocument
- The query. 
- firstBatchIReadOnlyList<TDocument>
- The first batch. 
- cursorIdlong
- The cursor identifier. 
- batchSizeint?
- The size of a batch. 
- limitint?
- The limit. 
- serializerIBsonSerializer<TDocument>
- The serializer. 
- messageEncoderSettingsMessageEncoderSettings
- The message encoder settings. 
- maxTimeTimeSpan?
- The maxTime for each batch. 
AsyncCursor(IChannelSource, CollectionNamespace, BsonDocument, IReadOnlyList<TDocument>, long, BsonDocument, int?, int?, IBsonSerializer<TDocument>, MessageEncoderSettings, TimeSpan?)
Initializes a new instance of the AsyncCursor<TDocument> class.
[Obsolete("Use overload without query.")]
public AsyncCursor(IChannelSource channelSource, CollectionNamespace collectionNamespace, BsonDocument query, IReadOnlyList<TDocument> firstBatch, long cursorId, BsonDocument postBatchResumeToken, int? batchSize, int? limit, IBsonSerializer<TDocument> serializer, MessageEncoderSettings messageEncoderSettings, TimeSpan? maxTime)Parameters
- channelSourceIChannelSource
- The channel source. 
- collectionNamespaceCollectionNamespace
- The collection namespace. 
- queryBsonDocument
- The query. 
- firstBatchIReadOnlyList<TDocument>
- The first batch. 
- cursorIdlong
- The cursor identifier. 
- postBatchResumeTokenBsonDocument
- The post batch resume token. 
- batchSizeint?
- The size of a batch. 
- limitint?
- The limit. 
- serializerIBsonSerializer<TDocument>
- The serializer. 
- messageEncoderSettingsMessageEncoderSettings
- The message encoder settings. 
- maxTimeTimeSpan?
- The maxTime for each batch. 
AsyncCursor(IChannelSource, CollectionNamespace, BsonValue, IReadOnlyList<TDocument>, long, BsonDocument, int?, int?, IBsonSerializer<TDocument>, MessageEncoderSettings, TimeSpan?)
Initializes a new instance of the AsyncCursor<TDocument> class.
public AsyncCursor(IChannelSource channelSource, CollectionNamespace collectionNamespace, BsonValue comment, IReadOnlyList<TDocument> firstBatch, long cursorId, BsonDocument postBatchResumeToken, int? batchSize, int? limit, IBsonSerializer<TDocument> serializer, MessageEncoderSettings messageEncoderSettings, TimeSpan? maxTime)Parameters
- channelSourceIChannelSource
- The channel source. 
- collectionNamespaceCollectionNamespace
- The collection namespace. 
- commentBsonValue
- The comment. 
- firstBatchIReadOnlyList<TDocument>
- The first batch. 
- cursorIdlong
- The cursor identifier. 
- postBatchResumeTokenBsonDocument
- The post batch resume token. 
- batchSizeint?
- The size of a batch. 
- limitint?
- The limit. 
- serializerIBsonSerializer<TDocument>
- The serializer. 
- messageEncoderSettingsMessageEncoderSettings
- The message encoder settings. 
- maxTimeTimeSpan?
- The maxTime for each batch.