Interface IDlrHost
Represents a simplic Dlr host
Namespace: Simplic.Dlr
Assembly: Simplic.Dlr.dll
Syntax
public interface IDlrHost
Properties
| Improve this Doc View SourceDefaultScope
Default scope for the current dlr host instance
Declaration
DlrScriptScope DefaultScope { get; }
Property Value
Type | Description |
---|---|
DlrScriptScope |
Resolver
Import resolver list
Declaration
IList<IDlrImportResolver> Resolver { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<IDlrImportResolver> |
ScriptEngine
Instance of the ScriptEngine connected with the host
Declaration
ScriptEngine ScriptEngine { get; }
Property Value
Type | Description |
---|---|
ScriptEngine |
Methods
| Improve this Doc View SourceAddImportResolver(IDlrImportResolver)
Add a simple resolver
Declaration
void AddImportResolver(IDlrImportResolver resolver)
Parameters
Type | Name | Description |
---|---|---|
IDlrImportResolver | resolver | Resolver instance |
LoadAssembly(Assembly)
Load an assembly into the runtime
Declaration
void LoadAssembly(Assembly asm)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | asm | Instance of an assembly |
PreCompile()
Precompile all available scripts
Declaration
void PreCompile()