ScriptReloadHost.Constructor
Section titled “ScriptReloadHost.Constructor”
- Creates a reload host for one compiler and runtime module owner.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scripting.Reload
Declaration
Section titled “Declaration”public Inno.Scripting.Reload.ScriptReloadHost.ScriptReloadHost(Inno.Scripting.Reload.ScriptReloadOptions options, Inno.Scripting.Compiler.ScriptCompiler compiler, Inno.Assets.Pipeline.AssetPipeline assets, Inno.Plugins.Authoring.PluginEnvironment plugins, Inno.Extensibility.Modules.ModuleHost modules, Inno.Core.Settings.ProjectSettingsStore settings, Inno.Scripting.Reload.IScriptReloadCoordinator reloads, System.Func<Inno.Scripting.Compiler.ScriptModuleDeployment, Inno.Extensibility.Modules.IModuleSource> moduleSourceFactory)Parameters
Section titled “Parameters”Parameter options: The automatic compilation, debounce, and long-running warning policy.
Parameter compiler: The compiler that produces immutable candidate script generations.
Parameter assets: The authoring asset pipeline that supplies committed source artifacts.
Parameter plugins: The Plugin environment that owns active and candidate source generations.
Parameter modules: The module host that atomically activates compiled assemblies.
Parameter settings: The project settings store rebuilt with each committed Plugin generation.
Parameter reloads: The host-owned coordinator that commits dependent state together with script generations.
Parameter moduleSourceFactory: The composition-owned factory that chooses the loading policy for each immutable script module. It must return a fresh source without activating or publishing the module.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when any required dependency is null.
Exception T:System.ArgumentOutOfRangeException: Thrown when the configured debounce duration is negative.