C# Class ServiceModelContrib.IoC.Unity.ContainerControlledCommunicationObjectLifetimeManager

A LifetimeManager that holds onto the ICommunicationObject (typically a WCF client channel proxy) given to it. When the ContainerControlledCommunicationObjectLifetimeManager is disposed, the instance is first properly closed, then disposed (if needed).
Inheritance: Microsoft.Practices.Unity.SynchronizedLifetimeManager, IDisposable
Exibir arquivo Open project: kredinor/ServiceModelContrib

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

RemoveValue ( ) : void

Remove the given object from backing store.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the Lifetime manager an the attached communication object.

SynchronizedGetValue ( ) : object

Retrieve a value from the backing store associated with this Lifetime policy.

SynchronizedSetValue ( object newValue ) : void

Stores the given value into backing store for retrieval later.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Disposes the Lifetime manager an the attached communication object.
protected Dispose ( bool disposing ) : void
disposing bool
return void

RemoveValue() public method

Remove the given object from backing store.
public RemoveValue ( ) : void
return void

SynchronizedGetValue() protected method

Retrieve a value from the backing store associated with this Lifetime policy.
protected SynchronizedGetValue ( ) : object
return object

SynchronizedSetValue() protected method

Stores the given value into backing store for retrieval later.
protected SynchronizedSetValue ( object newValue ) : void
newValue object The object being stored.
return void