Table of Contents

Class PrependedStagePipelineDefinition<TInput, TIntermediate, TOutput>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Represents a pipeline consisting of an existing pipeline with one additional stage prepended.

public sealed class PrependedStagePipelineDefinition<TInput, TIntermediate, TOutput> : PipelineDefinition<TInput, TOutput>

Type Parameters

TInput

The type of the input documents.

TIntermediate

The type of the intermediate documents.

TOutput

The type of the output documents.

Inheritance
PipelineDefinition<TInput, TOutput>
PrependedStagePipelineDefinition<TInput, TIntermediate, TOutput>
Inherited Members
Extension Methods

Constructors

PrependedStagePipelineDefinition(PipelineStageDefinition<TInput, TIntermediate>, PipelineDefinition<TIntermediate, TOutput>, IBsonSerializer<TOutput>)

public PrependedStagePipelineDefinition(PipelineStageDefinition<TInput, TIntermediate> stage, PipelineDefinition<TIntermediate, TOutput> pipeline, IBsonSerializer<TOutput> outputSerializer = null)

Parameters

stage PipelineStageDefinition<TInput, TIntermediate>

The stage.

pipeline PipelineDefinition<TIntermediate, TOutput>

The pipeline.

outputSerializer IBsonSerializer<TOutput>

The output serializer.

Properties

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

IEnumerable<IPipelineStageDefinition>

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 IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

RenderedPipelineDefinition<TOutput>

A RenderedPipelineDefinition<TOutput>