C# Class Nexus.Client.ModManagement.Scripting.ModScript.ScriptRunner

Runs a Mod Script script.
This class is meant to be run in a sandboxed domain in order to limit the possible damage from malicious or poorly written code.
Inheritance: System.MarshalByRefObject
Mostra file Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
Execute ( string p_strScript ) : bool

Executes the given script.

ScriptRunner ( Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy p_msfFunctions ) : System

A simple construtor that initializes the object with the given dependencies.

Method Details

Execute() public method

Executes the given script.
public Execute ( string p_strScript ) : bool
p_strScript string The script code to execute.
return bool

ScriptRunner() public method

A simple construtor that initializes the object with the given dependencies.
public ScriptRunner ( Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy p_msfFunctions ) : System
p_msfFunctions Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy The object that implements the script functions.
return System