Skip to content

Pipeline<TContext, TBaseNode> Class ​

Definition ​

A pipeline to process nodes in a tree with a context. A pipeline consists of multiple named stages, each of which has one or more Processor<TContext, TBaseNode>s running in serial or parallel. Stages can optionally specify whether pipeline processing should continue once the stage has completed. By default, processing will not continue if there are any errors in the tree.

c#
public sealed class Pipeline<TContext, TBaseNode>
   where TBaseNode : Node<TBaseNode>

View source

Type Parameters ​

NameDescription
TContextThe type of the context.
TBaseNodeThe base type of nodes in the tree.

Properties ​

NameDescription
StagesThe stages in the pipeline.

Methods ​

NameDescription
Build(Action<PipelineBuilder<TContext, TBaseNode>>)Fluent interface to build a Pipeline<TContext, TBaseNode>.
Run(TContext, TBaseNode)Runs the pipeline on the specified root node.