Class BsonDocumentStagePipelineDefinition<TInput, TOutput>
A pipeline composed of instances of BsonDocument.
public sealed class BsonDocumentStagePipelineDefinition<TInput, TOutput> : PipelineDefinition<TInput, TOutput>
Type Parameters
TInput
The type of the input.
TOutput
The type of the output.
- Inheritance
-
PipelineDefinition<TInput, TOutput>BsonDocumentStagePipelineDefinition<TInput, TOutput>
- Inherited Members
- Extension Methods
Constructors
BsonDocumentStagePipelineDefinition(IEnumerable<BsonDocument>, IBsonSerializer<TOutput>)
Initializes a new instance of the BsonDocumentStagePipelineDefinition<TInput, TOutput> class.
public BsonDocumentStagePipelineDefinition(IEnumerable<BsonDocument> stages, IBsonSerializer<TOutput> outputSerializer = null)
Parameters
stages
IEnumerable<BsonDocument>The stages.
outputSerializer
IBsonSerializer<TOutput>The output serializer.
Properties
Documents
Gets the stages.
public IList<BsonDocument> Documents { get; }
Property Value
OutputSerializer
Gets the output serializer.
public override IBsonSerializer<TOutput> OutputSerializer { get; }
Property Value
- IBsonSerializer<TOutput>
Stages
Gets the stages.
public override IEnumerable<IPipelineStageDefinition> Stages { get; }
Property Value
Methods
Render(IBsonSerializer<TInput>, IBsonSerializerRegistry, LinqProvider)
Renders the pipeline.
public override RenderedPipelineDefinition<TOutput> Render(IBsonSerializer<TInput> inputSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
inputSerializer
IBsonSerializer<TInput>The input serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.