• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    ScriptRun Class

    Definition

    Namespace: Alternet.Scripter.Python
    Assembly: Alternet.Scripter.Python.v8.dll

    Represents runner for script engine.

    Inheritance
    Object
    MarshalByRefObject
    Component
    ScriptRun
    Implements
    IComponent
    IDisposable
    IScriptRun
    IScriptRunBase
    Syntax
    [ToolboxBitmap(typeof(ScriptRun), "Images.ScriptRun.Python.Icon.bmp")]
    public class ScriptRun : Component, IComponent, IDisposable, IScriptRun, IScriptRunBase

    Constructors

    ScriptRun()

    Initializes a new instance of the ScriptRun class with default settings.

    ScriptRun(IContainer)

    Initializes a new instance of the ScriptRun class with specified parameters.

    Properties

    AutoGenerateTypeDefinitions

    Gets or sets whether project should automatically generate type definitions if possible.

    CaseSensitive

    When implemented by a class, indicates whether script language is case sensitive.

    CodeEnvironment
    Compiled

    Gets boolean value indicating that script has been compiled and ready to be executed.

    Executed

    Gets boolean value indicating that script has been compiled and ready to be executed.

    GlobalItems

    Gets or sets a script items collection attached to this runner.

    LoadUserTypeDefinitions

    Gets or sets whether users type definitions should be loaded.

    ProjectDirectory

    Gets or sets root project directory.

    ScriptHost

    Returns object that implements IScriptHost interface for this runner.

    ScriptSource

    Gets source of the script to execute.

    TypeDefinitionsSearchPaths

    Gets or sets list of search directories to look for type definitions.

    Methods

    Compile()

    Initializes script engine and compiles the script.

    CreateScriptHost()

    Creates a new IScriptHost object with appropriate characteristics.

    CreateScriptSource()
    Dispose(Boolean)
    EvaluateExpression(String)

    Evaluates specified expression.

    EvaluateExpressionAsync(String, CancellationToken)

    Evaluates specified expression asynchronously.

    LoadScript(String)

    Load script from specified file.

    OnFileLoad(String)

    Invokes FileLoad event handler.

    OnResolveReference(String, out String)

    Invokes ReferenceResolve event handler.

    OnScriptCompiled()

    Invokes ScriptCompiled event handler.

    OnScriptError(ScriptErrorEventArgs)

    Invokes ScriptError event handler.

    OnScriptExecuted()

    Invokes ScriptRunning event handler.

    OnScriptReset()

    Invokes ScriptReset event handler.

    OnScriptRunning()

    Invokes ScriptRunning event handler.

    Reset()

    Resets the script engine and releases all resources.

    Run()

    Executes script starting from the main entry point.

    RunAsync(CancellationToken)

    Executes script asynchronously starting from the main entry point.

    RunFunction(String, Object[])

    Executes specified function.

    RunFunctionAsync(String, Object[], CancellationToken)

    Executes specified function asynchronously.

    RunProcess(String[], Boolean)

    Executes script starting from the main entry point in stand-alone process

    Events

    FileLoad

    Occurs when script code is loaded from file.

    ReferenceResolve

    Occurs when assembly reference needs to be resolved.

    ScriptCompiled

    Occurs when the script engine running successfully.

    ScriptError

    Occurs when the script engine running is failed.

    ScriptExecuted

    Occurs when script engine executes the script.

    ScriptReset

    Occurs when the script engine is reset.

    ScriptRunning

    Occurs when script engine tries to running script.

    Explicit Interface Implementations

    IScriptRunBase.ScriptSource
    Inherited Members
    Component.Dispose()
    Component.GetService(Type)
    Component.ToString()
    Component.CanRaiseEvents
    Component.Events
    Component.Site
    Component.Container
    Component.DesignMode
    Component.Disposed
    MarshalByRefObject.MemberwiseClone(Boolean)
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.CreateObjRef(Type)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()

    Implements

    System.ComponentModel.IComponent
    System.IDisposable
    IScriptRun
    IScriptRunBase
    In This Article
    Back to top Copyright AlterNET Software Download PDF