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