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
channelSourceIChannelSourceThe channel source.
collectionNamespaceCollectionNamespaceThe collection namespace.
commentBsonValueThe comment.
firstBatchIReadOnlyList<TDocument>The first batch.
cursorIdlongThe cursor identifier.
batchSizeint?The size of a batch.
limitint?The limit.
serializerIBsonSerializer<TDocument>The serializer.
messageEncoderSettingsMessageEncoderSettingsThe 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
channelSourceIChannelSourceThe channel source.
collectionNamespaceCollectionNamespaceThe collection namespace.
queryBsonDocumentThe query.
firstBatchIReadOnlyList<TDocument>The first batch.
cursorIdlongThe cursor identifier.
batchSizeint?The size of a batch.
limitint?The limit.
serializerIBsonSerializer<TDocument>The serializer.
messageEncoderSettingsMessageEncoderSettingsThe 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
channelSourceIChannelSourceThe channel source.
collectionNamespaceCollectionNamespaceThe collection namespace.
queryBsonDocumentThe query.
firstBatchIReadOnlyList<TDocument>The first batch.
cursorIdlongThe cursor identifier.
postBatchResumeTokenBsonDocumentThe post batch resume token.
batchSizeint?The size of a batch.
limitint?The limit.
serializerIBsonSerializer<TDocument>The serializer.
messageEncoderSettingsMessageEncoderSettingsThe 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
channelSourceIChannelSourceThe channel source.
collectionNamespaceCollectionNamespaceThe collection namespace.
commentBsonValueThe comment.
firstBatchIReadOnlyList<TDocument>The first batch.
cursorIdlongThe cursor identifier.
postBatchResumeTokenBsonDocumentThe post batch resume token.
batchSizeint?The size of a batch.
limitint?The limit.
serializerIBsonSerializer<TDocument>The serializer.
messageEncoderSettingsMessageEncoderSettingsThe message encoder settings.
maxTimeTimeSpan?The maxTime for each batch.