Method EvaluateAsync
EvaluateAsync(string, CancellationToken)
Asynchronously evaluates the specified formula and returns the result.
public virtual Task<object> EvaluateAsync(string formula, CancellationToken cancellationToken = default)
Parameters
formulastringThe formula to evaluate. This must be a valid expression supported by the evaluation engine.
cancellationTokenCancellationTokenA token to monitor for cancellation requests. Defaults to None.
Returns
- Task<object>
A task that represents the asynchronous operation. The task result contains the evaluated value of the formula.
Remarks
The evaluation process uses the default formula options, global object, and global type configured for the current instance.