DomainLoader Class

Tungsten Suite

DomainLoader Class

An AppDomain helper class which makes it easy to host relodable AppDomains. Supports ShadowCopy.
Inheritance Hierarchy
SystemObject  W.DomainsDomainLoader

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
  NameDescription
Public methodDomainLoader(String, Boolean)
Creates an AppDomain under the current AppDomain
Public methodDomainLoader(String, String, Boolean)
Creates an AppDomain under the current AppDomain
Top
Properties
  NameDescription
Public propertyDomainName
The name of the new AppDomain
Top
Methods
  NameDescription
Public methodCreate(String)
Instantiates a class and returns a handle to it. This handle must be cast to an interface in order to work across AppDomains.
Public methodCreateTInterfaceType(String)
Instantiates a class and returns a handle to it. This handle must be cast to an interface in order to work across AppDomains.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodDoCallback
Executes an action in the context of the hosted AppDomain
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute(String, String, Object)
Instantiates a class and calls a method exposed by it.
Public methodExecuteTResult(String, String, Object)
Instantiates a class and calls a method exposed by it.
Public methodExecuteStaticMethod(String, String, Object)
Executes a static method on the specified type across the AppDomain
Public methodExecuteStaticMethodTResult(String, String, Object)
Executes a static method on the specified type across the AppDomain
Protected methodFinalize
Destructs the DomainLoader instance. Calls Dispose.
(Overrides ObjectFinalize.)
Public methodGetDataTData
Gets the value stored in the current application domain for the specified name
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Loads the dlls into the new AppDomain
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetData
Sets the value of the specified application domain property
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnload
Unloads the AppDomain and deletes files in the cache folder. The cache folder is where dlls are copied, and run, when using shadow copying.
Top
Extension Methods
  NameDescription
Public Extension MethodCode exampleAsTType
Use Generic syntax for the as operator.
(Defined by AsExtensions.)
Public Extension MethodInitializeProperties

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

(Defined by PropertyHostExtensions.)
Public Extension MethodInLock(Action)Overloaded.
Performs the action in a Monitor lock
(Defined by MonitorExtensions.)
Public Extension MethodInLockTType(FuncTType)Overloaded.
Performs the function in a Monitor lock
(Defined by MonitorExtensions.)
Public Extension MethodInLockAsync(Action)Overloaded.
Asynchronously performs the action in a Monitor lock
(Defined by MonitorExtensions.)
Public Extension MethodInLockAsyncTType(FuncTType)Overloaded.
Asynchronously performs the action in a Monitor lock
(Defined by MonitorExtensions.)
Public Extension MethodIsDirty

Scans the IsDirty value of each field and property of type IProperty

(Defined by PropertyHostExtensions.)
Public Extension MethodLock
Performs a Monitor lock
(Defined by MonitorExtensions.)
Public Extension MethodMarkAsClean

Scans each field and property of type IProperty and sets it's IsDirty flag to false

(Defined by PropertyHostExtensions.)
Public Extension MethodUnlock
Performs a Monitor unlock
(Defined by MonitorExtensions.)
Top
See Also