public override void Register(IComponentRegistration registration, bool preserveDefaults) { var toRegister = registration; if (registration.Lifetime is RootScopeLifetime) toRegister = new ComponentRegistrationLifetimeDecorator(registration, _restrictedRootScopeLifetime); base.Register(toRegister, preserveDefaults); }
public override void Register(IComponentRegistration registration, bool preserveDefaults) { var toRegister = registration; if (registration.Lifetime is RootScopeLifetime) { toRegister = new ComponentRegistrationLifetimeDecorator(registration, _restrictedRootScopeLifetime); } base.Register(toRegister, preserveDefaults); }