Search Results for

    Show / Hide Table of Contents

    Class DlrHost<T>

    Host environment for the dynamic language runtime

    Inheritance
    System.Object
    DlrHost<T>
    Implements
    IDlrHost
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Dlr
    Assembly: Simplic.Dlr.dll
    Syntax
    public class DlrHost<T> : IDlrHost where T : IDlrLanguage
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    DlrHost(T)

    Create a new dlr host environment

    Declaration
    public DlrHost(T language)
    Parameters
    Type Name Description
    T language

    Properties

    | Improve this Doc View Source

    DefaultScope

    Default scope for the current dlr host instance

    Declaration
    public DlrScriptScope DefaultScope { get; }
    Property Value
    Type Description
    DlrScriptScope
    | Improve this Doc View Source

    Resolver

    Import resolver list

    Declaration
    public IList<IDlrImportResolver> Resolver { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<IDlrImportResolver>
    | Improve this Doc View Source

    ScriptEngine

    Instance of the ScriptEngine connected with the host

    Declaration
    public ScriptEngine ScriptEngine { get; }
    Property Value
    Type Description
    ScriptEngine

    Methods

    | Improve this Doc View Source

    AddImportResolver(IDlrImportResolver)

    Add a resolver instance to the resolver list

    Declaration
    public void AddImportResolver(IDlrImportResolver resolver)
    Parameters
    Type Name Description
    IDlrImportResolver resolver
    | Improve this Doc View Source

    AddSearchPath(String)

    Add additional search path to look for modules/packages in the filesystem

    Declaration
    public void AddSearchPath(string path)
    Parameters
    Type Name Description
    System.String path

    Path to the modules

    | Improve this Doc View Source

    CreateNewDefaultScope()

    Create new default scope. One default scope will be created automatically when creating a Host-Instance.

    Declaration
    public DlrScriptScope CreateNewDefaultScope()
    Returns
    Type Description
    DlrScriptScope

    Scope instance

    | Improve this Doc View Source

    LoadAssembly(Assembly)

    Load an assembly into the runtime

    Declaration
    public void LoadAssembly(Assembly asm)
    Parameters
    Type Name Description
    System.Reflection.Assembly asm

    Instance of an assembly

    | Improve this Doc View Source

    PreCompile()

    Precompile all available scripts

    Declaration
    public void PreCompile()
    | Improve this Doc View Source

    RemoveSearchPath(String)

    Remove search path from the list of module/package paths

    Declaration
    public bool RemoveSearchPath(string path)
    Parameters
    Type Name Description
    System.String path

    Path to remove

    Returns
    Type Description
    System.Boolean

    True if the path was found and removed, else false

    Implements

    IDlrHost
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx