Table of Contents

Class BsonDocumentPipelineStageDefinition<TInput, TOutput>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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 BsonDocument

The document.

outputSerializer IBsonSerializer<TOutput>

The output serializer.

Properties

OperatorName

Gets the name of the pipeline operator.

public override string OperatorName { get; }

Property Value

string

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 IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

RenderedPipelineStageDefinition<TOutput>

A RenderedPipelineStageDefinition<TOutput>