IScriptRun Interface
Definition
Represents methods and properties declaration to describe runner for script engine.
Syntax
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 |
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 |
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 |
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[], Boolean) | When implemented by a class, executes script starting from the main entry point in stand-alone process |
Events
ReferenceResolve | When implemented by a class, occurs when script code is loaded from file. |