Table of Contents

Class BsonDocumentStagePipelineDefinition<TInput, TOutput>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

IList<BsonDocument>

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>