Interface ITraversalStrategy
A ITraversalStrategy defines a particular atomic operation for mutating a ITraversal prior to its evaluation.
Namespace: Gremlin.Net.Process.Traversal
Assembly: cs.temp.dll.dll
Syntax
public interface ITraversalStrategy
Methods
Apply<TStart, TEnd>(ITraversal<TStart, TEnd>)
Applies the strategy to the given ITraversal.
Declaration
void Apply<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)
Parameters
Type | Name | Description |
---|---|---|
ITraversal<TStart, TEnd> | traversal | The ITraversal the strategy should be applied to. |
Type Parameters
Name | Description |
---|---|
TStart | |
TEnd |
ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd>, CancellationToken)
Applies the strategy to the given ITraversal asynchronously.
Declaration
Task ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd> traversal, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
ITraversal<TStart, TEnd> | traversal | The ITraversal the strategy should be applied to. |
CancellationToken | cancellationToken | The token to cancel the operation. The default value is None. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Type Parameters
Name | Description |
---|---|
TStart | |
TEnd |