Class GlobalVariablesOnlyPathExpressionEvaluator
An implementation of IEvaluatesExpression which evaluates TALES 'global' expressions.
Inheritance
System.Object
GlobalVariablesOnlyPathExpressionEvaluator
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Expressions.PathExpressions
Assembly: ZptSharp.dll
Syntax
public class GlobalVariablesOnlyPathExpressionEvaluator : IEvaluatesExpression
Remarks
This class is little more than an adapter for IEvaluatesPathExpressionRequest. This is because there are a number of different 'path expression' variants which have almost-but-not-quite identical logic. This class builds a PathExpressionEvaluationRequest and passes it on down the stack.
Constructors
| Improve this Doc View SourceGlobalVariablesOnlyPathExpressionEvaluator(IEvaluatesPathExpressionRequest)
Initializes a new instance of the GlobalVariablesOnlyPathExpressionEvaluator class.
Declaration
public GlobalVariablesOnlyPathExpressionEvaluator(IEvaluatesPathExpressionRequest requestEvaluator)
Parameters
Type | Name | Description |
---|---|---|
IEvaluatesPathExpressionRequest | requestEvaluator | Request evaluator. |
Methods
| Improve this Doc View SourceEvaluateExpressionAsync(String, ExpressionContext, CancellationToken)
Evaluates the expression asynchronously and returns the result.
Declaration
public Task<object> EvaluateExpressionAsync(string expression, ExpressionContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | expression | The expression string. |
ExpressionContext | context | The expression context. |
System.Threading.CancellationToken | cancellationToken | An optional cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | The expression result. |