Class AssemblyContainer
Use this class to hold a reference to an assembly that you want to confine to a separate AppDomain, so that the assembly can be unloaded by discarding its domain.
Inheritance
System.Object
AssemblyContainer
Namespace: WizardWrx.AssemblyUtils
Assembly: WizardWrx.AssemblyUtils.dll
Syntax
public class AssemblyContainer : MarshalByRefObject
Constructors
| Improve this Doc View SourceAssemblyContainer()
The public constructor creates an empty container.
Declaration
public AssemblyContainer()
Methods
| Improve this Doc View SourceShowMe()
Get a transparent reference to the assembly stored in the container.
Declaration
public Assembly ShowMe()
Returns
Type | Description |
---|---|
Assembly | The reference is returned through a transparent proxy, and the main AppDomain can treat it as if it were local. Hence, it can be used to instantiate objects, query their properties, and call their methods. |
Store(AssemblyName)
Call this method to load an assembly into the container.
Declaration
public void Store(AssemblyName panThis)
Parameters
Type | Name | Description |
---|---|---|
AssemblyName | panThis | Designate the assembly to load by its AssemblyName. |