Table of Contents

Interface IScriptRun

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

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

public interface IScriptRun : IScriptRunBase

Properties

AssemblyKind

When implemented by a class, gets or sets output kind for the script assembly.

GlobalItems

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

Platform

When implemented by a class, gets or sets target platform (32 or 64 bits).

ScriptHost

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

ScriptLanguage

When implemented by a class, gets or sets programming language of the script.

ScriptMode

When implemented by a class, gets or sets debug or release mode for the scripts being executed.

ScriptSource

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

TargetFrameworkVersion

When implemented by a class, gets or sets target framework version for locating .NET Framework assemblies.

Win32ManifestOptions

When implemented by a class, gets or sets Win32 manifest options for the script assembly.

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.

LoadFile(string)

When implemented by a class, load text content from the specified file.

OnResolveReference(string, out string, out byte[])

When implemented by a class, invokes ReferenceResolve event handler.

Run(string[])

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

RunAsync(string[], CancellationToken)

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

RunMethod(string, object, object[])

When implemented by a class, executes specified method.

RunMethodAsync(string, object, object[], CancellationToken)

When implemented by a class, executes specified method asynchronously.

RunProcess(string[], bool)

When implemented by a class, executes script starting from the main entry point in stand-alone process

SyntaxCheck()

When implemented by a class, performs the syntax check of the script.

Events

ReferenceResolve

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