Summer.Batch.Core.Unity.Singleton.SingletonStrategy Class Reference

Unity builder strategy that changes the default lifetime manager to ContainerControlledLifetimeManager. It needs to be executed before LifetimeStrategy, and thus should be registered with the Microsoft.Practices.Unity.ObjectBuilder.UnityBuildStage.TypeMapping stage. More...

Inheritance diagram for Summer.Batch.Core.Unity.Singleton.SingletonStrategy:

Public Member Functions

override void PreBuildUp (IBuilderContext context)
 Checks if the instance being resolved has a lifetime manager. If it does not, an instance of ContainerControlledLifetimeManager is registered, which will then be used by LifetimeStrategy. More...
 

Detailed Description

Unity builder strategy that changes the default lifetime manager to ContainerControlledLifetimeManager. It needs to be executed before LifetimeStrategy, and thus should be registered with the Microsoft.Practices.Unity.ObjectBuilder.UnityBuildStage.TypeMapping stage.

Member Function Documentation

override void Summer.Batch.Core.Unity.Singleton.SingletonStrategy.PreBuildUp ( IBuilderContext  context)

Checks if the instance being resolved has a lifetime manager. If it does not, an instance of ContainerControlledLifetimeManager is registered, which will then be used by LifetimeStrategy.

Parameters
contextContext of the build operation.

The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/Unity/Singleton/SingletonStrategy.cs