1using System.Threading.Tasks;
77 if (!(
Arguments[0].AssociatedObjectValue is
string Key))
83 long Amount = (long)N;
88 Count = await Runtime.Counters.RuntimeCounters.DecrementCounter(Key, Amount);
92 Count = await Runtime.Counters.RuntimeCounters.DecrementCounter(Key);
override async Task< IElement > EvaluateAsync(IElement[] Arguments, Variables Variables)
Evaluates the function.
override string FunctionName
Name of the function
DecCounter(ScriptNode Key, int Start, int Length, Expression Expression)
Decrements a counter
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override string[] DefaultArgumentNames
Default Argument names
DecCounter(ScriptNode Key, ScriptNode Amount, int Start, int Length, Expression Expression)
Decrements a counter
Script runtime exception.
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes2Scalar
Two scalar parameters.
static readonly ArgumentType[] argumentTypes1Scalar
One scalar parameter.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Basic interface for all types of elements.