ScriptDomain Class |
Namespace: UMod.Scripting
public class ScriptDomain
The ScriptDomain type exposes the following members.
Name | Description | |
---|---|---|
Assemblies |
Get all assemblies loaded into this domain.
| |
EnumerateAssemblies |
Enumerate all assemblies loaded into this domain.
| |
ExecutionContext |
Get the ScriptExecutionContext for this domain.
| |
IsDisposed |
Has this domain been disposed.
|
Name | Description | |
---|---|---|
Kill |
Destroy the script domain and any mod code that is currently executing.
If you just want to stop running mod scripts then use Kill.
| |
LoadAndActivateAssembly(Byte, Byte) |
Attempts to load and activate a managed assembly for the specified raw bytes.
The assembly will also be activated using meaning that all mod script types will be created and will start receiving events.
| |
LoadAndActivateAssembly(AssemblyName, Byte) |
Attempts to load and activate a managed assembly with the specified AssemblyName.
The assembly will also be activated using meaning that all mod script types will be created and will start receiving events.
Note that security checks cannot be performed when using this load method. If security checks are required then use one of the other overloads.
| |
LoadAndActivateAssembly(String, Byte) |
Attempts to load and activate a managed assembly from the specified path.
The assembly will also be activated using meaning that all mod script types will be created and will start receiving events.
| |
LoadAndActivateAssemblyFromResources |
Attempts to load and activate a managed assembly from the resources folder.
The resource asset must be a TextAsset in order to be loaded successfully.
The assembly will also be activated using meaning that all mod script types will be created and will start receiving events.
| |
LoadAndActivateAssemblyWithSymbols |
Attempts to load and activate a managed assembly from the specified raw bytes along with the debugging symbols.
The assembly will also be activated using meaning that all mod script types will be created and will start receiving events.
| |
LoadAssembly(Byte, Byte) |
Attempts to load a managed assembly from the specified raw bytes.
| |
LoadAssembly(AssemblyName, Byte) |
Attempts to load the specified managed assembly into the sandbox app domain.
| |
LoadAssembly(String, Byte) |
Attempts to load the specified managed assembly into the sandbox app domain.
| |
LoadAssemblyFromResources |
Attempts to load a managed assembly from the specified resources path into the sandbox app domain.
The target asset must be a TextAsset in order to be loaded successfully.
| |
LoadAssemblyWithSymbols |
Attempts to load a managed assembly from the specified raw bytes.
The debug symbols for the assembly will also be loaded from the specified symbol data.
| |
ResolveType | ||
SecurityCheckAssembly(Byte, Assembly, CodeSecurityEngine, CodeSecurityReport, Boolean, Byte) |
Attempts to perform security validation on the specified assembly data.
Failure to load the data will result in a fail result.
| |
SecurityCheckAssembly(AssemblyName, Assembly, CodeSecurityEngine, CodeSecurityReport, Boolean, Byte) |
Attempts to perform security validation on the specified assembly name.
Failure to load the data will result in a fail result.
| |
SecurityCheckAssembly(String, Assembly, CodeSecurityEngine, CodeSecurityReport, Boolean, Byte) |
Attempts to perform security validation on the assembly at the specified location.
Failure to load the data will result in a fail result.
| |
TryLoadAndActivateAssembly(Byte, ScriptAssembly, Byte) |
Attempts to load and activate a managed assembly with the specified raw bytes.
The assembly will also be activated using meaning that all mod script types will be created and will start receiving events.
Note that security checks cannot be performed when using this load method. If security checks are required then use one of the other overloads.
Any exceptions that are thrown during loading will be caught and cause a load failure.
| |
TryLoadAndActivateAssembly(AssemblyName, ScriptAssembly, Byte) |
Attempts to load and activate a managed assembly with the specified AssemblyName.
The assembly will also be activated using meaning that all mod script types will be created and will start receiving events.
Note that security checks cannot be performed when using this load method. If security checks are required then use one of the other overloads.
Any exceptions that are thrown during loading will be caught and cause a load failure.
| |
TryLoadAndActivateAssembly(String, ScriptAssembly, Byte) |
Attempts to load and activate a managed assembly from the specified path.
The assembly will also be activated using meaning that all mod script types will be created and will start receiving events.
Any exceptions that are thrown during loading will be caught and cause a load failure.
| |
TryLoadAndActivateAssemblyWithSymbols |
Attempts to load and activate managed assembly from the specified raw bytes.
The debug symbols for the assembly will also be loaded from the specified symbol data.
Any exceptions that are thrown during loading will be caught and cause a load failure.
| |
TryLoadAssembly(Byte, ScriptAssembly, Byte) |
Attempts to load a managed assembly from the raw assembly data.
Any exceptions thrown while loading will be caught.
| |
TryLoadAssembly(AssemblyName, ScriptAssembly, Byte) |
Attempts to load a managed assembly with the specified name.
Any exceptions thrown while loading will be caught.
| |
TryLoadAssembly(String, ScriptAssembly, Byte) |
Attempts to load the managed assembly at the specified location.
Any exceptions throw while loading will be caught.
| |
TryLoadAssemblyWithSymbols |
Attempts to load a managed assembly from the raw assembly data.
The debug symbols for the assembly will also be loaded from the specified symbol data.
Any exceptions thrown while loading will be caught.
|