container icon indicating copy to clipboard operation
container copied to clipboard

SingletonLifetimeManager is deprecated

Open ENikS opened this issue 6 years ago • 0 comments

Deprecating SingletonLifetimeManager

SingletonLifetimeManager lifetime manager was introduced in v5 to support global singletons. The registration with this manager would be propagated into root container and be available for all children

Reason for deprecation

Due to optimization of registration strategy in v6.x it is no longer possible to internally switch container during registration. As result, when registering in child container, root container context is not available and SingletonLifetimeManager can not be registered there.

Impact

Registrations made with SingletonLifetimeManager must be changed to ContainerControlledLifetimeManager and registered with the root container explicitly.

ENikS avatar Aug 01 '20 00:08 ENikS