Class BsonDocumentPipelineStageDefinition<TInput, TOutput>
A BsonDocument based stage.
public sealed class BsonDocumentPipelineStageDefinition<TInput, TOutput> : PipelineStageDefinition<TInput, TOutput>, IPipelineStageDefinition
Type Parameters
TInput
The type of the input.
TOutput
The type of the output.
- Inheritance
-
PipelineStageDefinition<TInput, TOutput>BsonDocumentPipelineStageDefinition<TInput, TOutput>
- Implements
- Inherited Members
Constructors
BsonDocumentPipelineStageDefinition(BsonDocument, IBsonSerializer<TOutput>)
Initializes a new instance of the BsonDocumentPipelineStageDefinition<TInput, TOutput> class.
public BsonDocumentPipelineStageDefinition(BsonDocument document, IBsonSerializer<TOutput> outputSerializer = null)
Parameters
document
BsonDocumentThe document.
outputSerializer
IBsonSerializer<TOutput>The output serializer.
Properties
OperatorName
Gets the name of the pipeline operator.
public override string OperatorName { get; }
Property Value
Methods
Render(IBsonSerializer<TInput>, IBsonSerializerRegistry, LinqProvider)
Renders the specified document serializer.
public override RenderedPipelineStageDefinition<TOutput> Render(IBsonSerializer<TInput> inputSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
inputSerializer
IBsonSerializer<TInput>The input serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.