PipelineStageBuilder<TSelf, TStage, TBaseNode, TProcessor, TShouldContinue>.WithDefaultTraversal Method
Definition
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.
public TSelf WithDefaultTraversal(ITraversal<TBaseNode> defaultTraversal);
Parameters
| Name | Type | Description |
|---|---|---|
defaultTraversal |
ITraversal<TBaseNode> |
The default traversal. |
Returns
TSelf
The fluent builder.