Method Create
Create(IEnumerable<IPipelineStageDefinition>, IBsonSerializer<TOutput>)
Creates a pipeline.
public static PipelineDefinition<TInput, TOutput> Create(IEnumerable<IPipelineStageDefinition> stages, IBsonSerializer<TOutput> outputSerializer = null)
Parameters
stages
IEnumerable<IPipelineStageDefinition>The stages.
outputSerializer
IBsonSerializer<TOutput>The output serializer.
Returns
- PipelineDefinition<TInput, TOutput>
Create(IEnumerable<BsonDocument>, IBsonSerializer<TOutput>)
Creates a pipeline.
public static PipelineDefinition<TInput, TOutput> Create(IEnumerable<BsonDocument> stages, IBsonSerializer<TOutput> outputSerializer = null)
Parameters
stages
IEnumerable<BsonDocument>The stages.
outputSerializer
IBsonSerializer<TOutput>The output serializer.
Returns
- PipelineDefinition<TInput, TOutput>
Create(IEnumerable<string>, IBsonSerializer<TOutput>)
Creates a pipeline.
public static PipelineDefinition<TInput, TOutput> Create(IEnumerable<string> stages, IBsonSerializer<TOutput> outputSerializer = null)
Parameters
stages
IEnumerable<string>The stages.
outputSerializer
IBsonSerializer<TOutput>The output serializer.
Returns
- PipelineDefinition<TInput, TOutput>
Create(params BsonDocument[])
Creates a pipeline.
public static PipelineDefinition<TInput, TOutput> Create(params BsonDocument[] stages)
Parameters
stages
BsonDocument[]The stages.
Returns
- PipelineDefinition<TInput, TOutput>
Create(params string[])
Creates a pipeline.
public static PipelineDefinition<TInput, TOutput> Create(params string[] stages)
Parameters
stages
string[]The stages.
Returns
- PipelineDefinition<TInput, TOutput>