PipelineStage<TContext, TBaseNode>.Run Method
Overloads
Method | Description |
|---|---|
Runs the stage, returning a tuple of whether the pipeline should continue and the potentially replaced root node. | |
Runs the stage, returning the potentially new root via an out parameter. |
Run(TContext, TBaseNode)
Definition
Runs the stage, returning a tuple of whether the pipeline should continue and the potentially replaced root node.
Parameters
Name | Type | Description |
|---|---|---|
context | TContext | The processing context. |
root | TBaseNode | The root node to run processing on. |
Returns
(bool Success, TBaseNode Root) A tuple of whether processing should continue and the root node, which may have been replaced by a Replacer<TContext, TBaseNode>.
Run(TContext, TBaseNode, out TBaseNode)
Definition
Runs the stage, returning the potentially new root via an out parameter.
Parameters
Name | Type | Description |
|---|---|---|
context | TContext | The processing context. |
root | TBaseNode | The root node to run processing on. |
newRoot | TBaseNode | The root node after processing, which may have been replaced by a Replacer<TContext, TBaseNode>. |
Returns
Boolean true if the pipeline should proceed to the next stage, false otherwise.