Table of Contents

Method EvaluateAsync

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

EvaluateAsync(string, CancellationToken)

Asynchronously evaluates the specified formula and returns the result.

public virtual Task<object> EvaluateAsync(string formula, CancellationToken cancellationToken = default)

Parameters

formula string

The formula to evaluate. This must be a valid expression supported by the evaluation engine.

cancellationToken CancellationToken

A 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.