Class PathExpressionRequestEvaluator
Implementation of IEvaluates
Inheritance
Implements
Inherited Members
Namespace: ZptSharp.Expressions.PathExpressions
Assembly: ZptSharp.dll
Syntax
public class PathExpressionRequestEvaluator : IEvaluatesPathExpressionRequest
Remarks
The main work done by this class is the parsing and splitting-up of the path expression
into one or more Path
If an alternate expression returns a result then this is the result of the evaluation operation.
If, on the other hand, we exhaust all of the alternate expressions and every one of them raises
an exception, this the Evaluate
Constructors
| Improve this Doc View SourcePathExpressionRequestEvaluator(IGetsPathWalkingExpressionEvaluator, IParsesPathExpression)
Initializes a new instance of the Path
Declaration
public PathExpressionRequestEvaluator(IGetsPathWalkingExpressionEvaluator walkingEvaluatorFactory, IParsesPathExpression expressionParser)
Parameters
Type | Name | Description |
---|---|---|
IGets |
walkingEvaluatorFactory | Path-walking evaluator. |
IParses |
expressionParser | Expression parser. |
Methods
| Improve this Doc View SourceEvaluateAsync(PathExpressionEvaluationRequest, CancellationToken)
Evaluate the expression and return the result.
Declaration
public Task<object> EvaluateAsync(PathExpressionEvaluationRequest request, CancellationToken token = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
Path |
request | Request. |
System. |
token | Token. |
Returns
Type | Description |
---|---|
System. |
The async. |