This topic has not yet been rated - Rate this topic

SynchronizedLifetimeManager Class

Base class for Lifetime managers which need to synchronize calls to GetValue()()().

Namespace:  Microsoft.Practices.Unity
Assembly:  Microsoft.Practices.Unity (in Microsoft.Practices.Unity.dll)
public abstract class SynchronizedLifetimeManager : LifetimeManager, 
	IRequiresRecovery

The purpose of this class is to provide a basic implementation of the lifetime manager synchronization pattern.

Calls to the GetValue()()() method of a SynchronizedLifetimeManager instance acquire a lock, and if the instance has not been initialized with a value yet the lock will only be released when such an initialization takes place by calling the SetValue(Object) method or if the build request which resulted in the call to the GetValue method fails.

Did you find this helpful?
(1500 characters remaining)