C# Class AppDomainToolkit.DisposableAppDomain

This is a thin wrapper around the .NET AppDomain class that enables safe disposal. Use these objects where you would normally grab an AppDomain object. Note that if the current application domain is passed to this class, a call to Dispose will do nothing. We will never unload the current application domain.
Inheritance: AppDomainToolkit.IDisposable
Datei anzeigen Open project: jduv/AppDomainToolkit Class Usage Examples

Public Methods

Method Description
DisposableAppDomain ( AppDomain domain ) : System

Initializes a new instance of the DisposableAppDomain class.

Dispose ( ) : void

Private Methods

Method Description
OnDispose ( bool disposing ) : void

Should be called when the object is being disposed.

Method Details

DisposableAppDomain() public method

Initializes a new instance of the DisposableAppDomain class.
public DisposableAppDomain ( AppDomain domain ) : System
domain System.AppDomain /// The domain to wrap. ///
return System

Dispose() public method

public Dispose ( ) : void
return void