Tungsten
DomainLoader Class |
An AppDomain helper class which makes it easy to host relodable AppDomains. Supports ShadowCopy.
Inheritance Hierarchy
Namespace: W.Domains
Assembly: Tungsten.Domains (in Tungsten.Domains.dll) Version: 2.0.0
Syntax
C#
public class DomainLoader : IDomainLoader, IDisposable
The DomainLoader type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DomainLoader(String, Boolean) |
Creates an AppDomain under the current AppDomain
| |
DomainLoader(String, String, Boolean) |
Creates an AppDomain under the current AppDomain
|
Properties
Name | Description | |
---|---|---|
DomainName |
The name of the new AppDomain
|
Methods
Name | Description | |
---|---|---|
Create(String) |
Instantiates a class and returns a handle to it. This handle must be cast to an interface in order to work across AppDomains.
| |
CreateTInterfaceType(String) |
Instantiates a class and returns a handle to it. This handle must be cast to an interface in order to work across AppDomains.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
DoCallback |
Executes an action in the context of the hosted AppDomain
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Execute(String, String, Object) |
Instantiates a class and calls a method exposed by it.
| |
ExecuteTResult(String, String, Object) |
Instantiates a class and calls a method exposed by it.
| |
ExecuteStaticMethod(String, String, Object) |
Executes a static method on the specified type across the AppDomain
| |
ExecuteStaticMethodTResult(String, String, Object) |
Executes a static method on the specified type across the AppDomain
| |
Finalize |
Destructs the DomainLoader instance. Calls Dispose.
(Overrides ObjectFinalize.) | |
GetDataTData |
Gets the value stored in the current application domain for the specified name
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Load |
Loads the dlls into the new AppDomain
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetData |
Sets the value of the specified application domain property
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unload |
Unloads the AppDomain and deletes files in the cache folder. The cache folder is where dlls are copied, and run, when using shadow copying.
|
Extension Methods
Name | Description | |
---|---|---|
AsTType |
Use Generic syntax for the as operator.
(Defined by AsExtensions.) | |
InitializeProperties | Scans the fields and properties of "owner" and sets the member's Owner property to "owner" This method should be called in the constructor of any class which has IOwnedProperty members | |
InLock(Action) | Overloaded.
Performs the action in a Monitor lock
(Defined by MonitorExtensions.) | |
InLockTType(FuncTType) | Overloaded.
Performs the function in a Monitor lock
(Defined by MonitorExtensions.) | |
InLockAsync(Action) | Overloaded.
Asynchronously performs the action in a Monitor lock
(Defined by MonitorExtensions.) | |
InLockAsyncTType(FuncTType) | Overloaded.
Asynchronously performs the action in a Monitor lock
(Defined by MonitorExtensions.) | |
IsDirty | Scans the IsDirty value of each field and property of type IProperty | |
Lock |
Performs a Monitor lock
(Defined by MonitorExtensions.) | |
MarkAsClean | Scans each field and property of type IProperty and sets it's IsDirty flag to false | |
Unlock |
Performs a Monitor unlock
(Defined by MonitorExtensions.) |
See Also