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
channelSource
IChannelSourceThe channel source.
collectionNamespace
CollectionNamespaceThe collection namespace.
comment
BsonValueThe comment.
firstBatch
IReadOnlyList<TDocument>The first batch.
cursorId
longThe cursor identifier.
batchSize
int?The size of a batch.
limit
int?The limit.
serializer
IBsonSerializer<TDocument>The serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.
maxTime
TimeSpan?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
channelSource
IChannelSourceThe channel source.
collectionNamespace
CollectionNamespaceThe collection namespace.
query
BsonDocumentThe query.
firstBatch
IReadOnlyList<TDocument>The first batch.
cursorId
longThe cursor identifier.
batchSize
int?The size of a batch.
limit
int?The limit.
serializer
IBsonSerializer<TDocument>The serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.
maxTime
TimeSpan?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
channelSource
IChannelSourceThe channel source.
collectionNamespace
CollectionNamespaceThe collection namespace.
query
BsonDocumentThe query.
firstBatch
IReadOnlyList<TDocument>The first batch.
cursorId
longThe cursor identifier.
postBatchResumeToken
BsonDocumentThe post batch resume token.
batchSize
int?The size of a batch.
limit
int?The limit.
serializer
IBsonSerializer<TDocument>The serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.
maxTime
TimeSpan?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
channelSource
IChannelSourceThe channel source.
collectionNamespace
CollectionNamespaceThe collection namespace.
comment
BsonValueThe comment.
firstBatch
IReadOnlyList<TDocument>The first batch.
cursorId
longThe cursor identifier.
postBatchResumeToken
BsonDocumentThe post batch resume token.
batchSize
int?The size of a batch.
limit
int?The limit.
serializer
IBsonSerializer<TDocument>The serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.
maxTime
TimeSpan?The maxTime for each batch.