Class AsyncEvaluationVisitor
Class responsible to asynchronous evaluating LogicalExpression objects into CLR objects.
public class AsyncEvaluationVisitor : ILogicalExpressionVisitor<ValueTask<object?>>
- Inheritance
-
AsyncEvaluationVisitor
- Implements
- Inherited Members
Constructors
AsyncEvaluationVisitor(AsyncExpressionContext)
Class responsible to asynchronous evaluating LogicalExpression objects into CLR objects.
public AsyncEvaluationVisitor(AsyncExpressionContext context)
Parameters
context
AsyncExpressionContextContextual parameters of the LogicalExpression, like custom functions and parameters.
Methods
Compare(object?, object?, ComparisonType)
protected bool Compare(object? a, object? b, ComparisonType comparisonType)
Parameters
a
objectb
objectcomparisonType
ComparisonType
Returns
OnEvaluateFunctionAsync(string, AsyncFunctionArgs)
protected ValueTask OnEvaluateFunctionAsync(string name, AsyncFunctionArgs args)
Parameters
name
stringargs
AsyncFunctionArgs
Returns
OnEvaluateParameterAsync(string, AsyncParameterArgs)
protected ValueTask OnEvaluateParameterAsync(string name, AsyncParameterArgs args)
Parameters
name
stringargs
AsyncParameterArgs
Returns
Visit(BinaryExpression)
public ValueTask<object?> Visit(BinaryExpression expression)
Parameters
expression
BinaryExpression
Returns
Visit(Function)
public ValueTask<object?> Visit(Function function)
Parameters
function
Function
Returns
Visit(Identifier)
public ValueTask<object?> Visit(Identifier identifier)
Parameters
identifier
Identifier
Returns
Visit(LogicalExpressionList)
public ValueTask<object?> Visit(LogicalExpressionList list)
Parameters
Returns
Visit(TernaryExpression)
public ValueTask<object?> Visit(TernaryExpression expression)
Parameters
expression
TernaryExpression
Returns
Visit(UnaryExpression)
public ValueTask<object?> Visit(UnaryExpression expression)
Parameters
expression
UnaryExpression
Returns
Visit(ValueExpression)
public ValueTask<object?> Visit(ValueExpression expression)
Parameters
expression
ValueExpression