Table of Contents

Method EvaluateExpressionAsync

Namespace
Alternet.Scripter.TypeScript
Assembly
Alternet.Scripter.TypeScript.v9.dll

EvaluateExpressionAsync(string, CancellationToken)

Evaluates specified expression asynchronously.

public virtual Task<object> EvaluateExpressionAsync(string expression, CancellationToken cancellationToken = default)

Parameters

expression string

Expression to execute.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<object>

An object containing return value of the expression being evaluated.