Skip to content

PipelineStageBuilder<TSelf, TStage, TBaseNode, TProcessor, TShouldContinue> Class

Definition

Fluent builder for a pipeline stage.

public abstract class PipelineStageBuilder<TSelf, TStage, TBaseNode, TProcessor, TShouldContinue>
   where TSelf : PipelineStageBuilder<TSelf, TStage, TBaseNode, TProcessor, TShouldContinue>
   where TBaseNode : Node<TBaseNode>

View source

Type Parameters

Name Description
TSelf
TStage
TBaseNode
TProcessor
TShouldContinue

Methods

Name Description
Add<TConstructableProcessor>() Adds a Processor<TBaseNode> of the specified type to the current stage.
Add(IEnumerable<TProcessor>) Adds Processors to the current stage.
WithAlwaysContinue() Specifies that processing should always continue after this stage. By default, processing will not continue if there are any errors in the tree.
WithDefaultTraversal(ITraversal<TBaseNode>) The default ITraversal<TNode> to use to walk through the tree. OrderedProcessor<TBaseNode>s will specify their own traversal to use. Defaults to DepthFirstPreOrderTraversal<TNode>
WithName(String) Sets the name of the stage.
WithShouldContinue(TShouldContinue) Sets a function to determine whether processing should continue after this stage or not. Any previously registered function will be replaced. By default, processing will not continue if there are any errors in the tree.