Table of Contents

Class PipelineStagePipelineDefinition<TInput, TOutput>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A pipeline composed of instances of IPipelineStageDefinition.

public sealed class PipelineStagePipelineDefinition<TInput, TOutput> : PipelineDefinition<TInput, TOutput>

Type Parameters

TInput

The type of the input.

TOutput

The type of the output.

Inheritance
PipelineDefinition<TInput, TOutput>
PipelineStagePipelineDefinition<TInput, TOutput>
Inherited Members
Extension Methods

Constructors

PipelineStagePipelineDefinition(IEnumerable<IPipelineStageDefinition>, IBsonSerializer<TOutput>)

Initializes a new instance of the PipelineStagePipelineDefinition<TInput, TOutput> class.

public PipelineStagePipelineDefinition(IEnumerable<IPipelineStageDefinition> stages, IBsonSerializer<TOutput> outputSerializer = null)

Parameters

stages IEnumerable<IPipelineStageDefinition>

The stages.

outputSerializer IBsonSerializer<TOutput>

The output serializer.

Properties

OutputSerializer

Gets the output serializer.

public override IBsonSerializer<TOutput> OutputSerializer { get; }

Property Value

IBsonSerializer<TOutput>

Serializer

Gets the serializer.

[Obsolete("Use OutputSerializer instead.")]
public IBsonSerializer<TOutput> Serializer { 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>