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>
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>) |
Sets the ITraversal<TNode> used to walk the tree for processors that do not specify their own. Defaults to DepthFirstPreOrderTraversal<TNode>. An OrderedProcessor<TBaseNode> or OrderedProcessor<TContext, TBaseNode> always uses the traversal from its GetTraversal method instead, so this is only the default for unordered processors. |
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. |