Table of Contents

Interface IScriptRun

Namespace
Alternet.Scripter.Debugger.Dap
Assembly
Alternet.Scripter.Debugger.Dap.v9.dll

Represents methods and properties declaration to describe runner for script engine.

public interface IScriptRun : IScriptRunBase

Properties

GlobalItems

When implemented by a class, gets or sets a script items collection attached to this runner.

ScriptHost

When implemented by a class, returns object that implements IScriptHost interface for this runner.

ScriptSource

When implemented by a class, gets source of the script to execute.

Methods

CreateScriptHost()

When implemented by a class, creates a new IScriptHost object with appropriate characteristics.

EvaluateExpressionAsync(string, CancellationToken)

When implemented by a class, evaluates specified expression asynchronously.

OnResolveReference(string, out string)

When implemented by a class, invokes ReferenceResolve event handler.

RunAsync(CancellationToken)

When implemented by a class, executes script asynchronously starting from the main entry point.

RunFunction(string, object[])

When implemented by a class, executes specified function.

RunFunctionAsync(string, object[], CancellationToken)

When implemented by a class, executes specified function asynchronously.

Events

ReferenceResolve

When implemented by a class, occurs when script code is loaded from file.