Table of Contents

Interface IScriptHost

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

Represents methods and properties declaration to support a script engine functionality.

public interface IScriptHost : IDisposable

Properties

CompileFailed

When implemented by a class, gets or sets boolean value indicating unsuccessful script compilation.

Compiled

When implemented by a class, gets boolean value indicating that script has been compiled and ready to be executed.

CompilerErrors

When implemented by a class, gets list of compiler errors associated with the script being executed.

ModulesDirectoryPath

When implemented by a class, gets or sets path for compiled script assemblies.

OutputFileName

When implemented by a class, gets script assembly file name.

PostRunAction
PreRunAction
ScriptRun

When implemented by a class, gets IScriptRun associated this script host.

SkipSyntaxErrorCheck

When implemented by a class, gets or sets a boolean value indicating whether to skip the script syntax error check.

TextOutputCallback
TraceCallback

Methods

Compile()

When implemented by a class, initializes script engine and compiles the script.

EvaluateExpression(string)

When implemented by a class, evaluates specified expression.

EvaluateExpressionAsync(string, CancellationToken)

When implemented by a class, evaluates specified expression asynchronously.

Reset()

When implemented by a class, closes the script engine and releases all resources.

ResolveReferences(IList<string>)

When implemented by a class, returns list of assembly references used by the script.

Run()

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

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.

RunProcess(string[], bool)

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