Skip to content

PipelineStage<TContext, TBaseNode> Class

Definition

A stage from a Pipeline<TContext, TBaseNode>

public abstract class PipelineStage<TContext, TBaseNode>
   where TBaseNode : Node<TBaseNode>

View source

Type Parameters

Name Description
TContext The type of the processing context.
TBaseNode The type of nodes in the tree.

Properties

Name Description
DefaultTraversal The default ITraversal<TNode> to use when traversing the tree if not specified by an OrderedProcessor<TBaseNode>.
Name The name of the stage.
ShouldContinue Function to run after the stage to determine if the pipeline should move on to the next stage or not.

Methods

Name Description
Run(TContext, TBaseNode, TBaseNode) Runs the stage, returning the potentially new root via an out parameter.
Run(TContext, TBaseNode) Runs the stage, returning a tuple of whether the pipeline should continue and the potentially replaced root node.