Constructor AggregateOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
AggregateOperation(DatabaseNamespace, IEnumerable<BsonDocument>, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the AggregateOperation<TResult> class.
public AggregateOperation(DatabaseNamespace databaseNamespace, IEnumerable<BsonDocument> pipeline, IBsonSerializer<TResult> resultSerializer, MessageEncoderSettings messageEncoderSettings)
Parameters
databaseNamespace
DatabaseNamespaceThe database namespace.
pipeline
IEnumerable<BsonDocument>The pipeline.
resultSerializer
IBsonSerializer<TResult>The result value serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.
AggregateOperation(CollectionNamespace, IEnumerable<BsonDocument>, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the AggregateOperation<TResult> class.
public AggregateOperation(CollectionNamespace collectionNamespace, IEnumerable<BsonDocument> pipeline, IBsonSerializer<TResult> resultSerializer, MessageEncoderSettings messageEncoderSettings)
Parameters
collectionNamespace
CollectionNamespaceThe collection namespace.
pipeline
IEnumerable<BsonDocument>The pipeline.
resultSerializer
IBsonSerializer<TResult>The result value serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.