C# Class GSoft.Dynamite.DI.Unity.UnityPerRequestLifetimeManager

Pre-request lifetime manager. Only one instance of the class is used per HttpRequest.
Inheritance: Microsoft.Practices.Unity.LifetimeManager, IDisposable
Mostrar archivo Open project: GSoft-SharePoint/Dynamite-2010

Public Methods

Method Description
Dispose ( ) : void

Disposal removes the object from lifetime manager control

GetValue ( ) : object

Retrieve the lifetime manager controlled object

RemoveValue ( ) : void

Clear the lifetime manager controlled object

SetValue ( object newValue ) : void

Adds the object under lifetime manager control

Protected Methods

Method Description
Dispose ( bool cleanupManagedResources ) : void

Disposal removes the object from lifetime manager control

Method Details

Dispose() public method

Disposal removes the object from lifetime manager control
public Dispose ( ) : void
return void

Dispose() protected method

Disposal removes the object from lifetime manager control
protected Dispose ( bool cleanupManagedResources ) : void
cleanupManagedResources bool Whether both managed and native resources should be freed
return void

GetValue() public method

Retrieve the lifetime manager controlled object
public GetValue ( ) : object
return object

RemoveValue() public method

Clear the lifetime manager controlled object
public RemoveValue ( ) : void
return void

SetValue() public method

Adds the object under lifetime manager control
public SetValue ( object newValue ) : void
newValue object New value
return void