Interface ITraversalStrategy
A ITraversalStrategy defines a particular atomic operation for mutating a ITraversal prior to its evaluation.
public interface ITraversalStrategy
Methods
ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd>, CancellationToken)
Applies the strategy to the given ITraversal asynchronously.
Task ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd> traversal, CancellationToken cancellationToken = default)
Parameters
traversal
ITraversal<TStart, TEnd>The ITraversal the strategy should be applied to.
cancellationToken
CancellationTokenThe token to cancel the operation. The default value is None.
Returns
Type Parameters
TStart
TEnd
Apply<TStart, TEnd>(ITraversal<TStart, TEnd>)
Applies the strategy to the given ITraversal.
void Apply<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)
Parameters
traversal
ITraversal<TStart, TEnd>The ITraversal the strategy should be applied to.
Type Parameters
TStart
TEnd