From 9c7129409c2bf4edf67d8c6162dcf97b0313a3fa Mon Sep 17 00:00:00 2001 From: Eugene Sadovoi Date: Wed, 22 May 2019 21:21:47 -0400 Subject: [PATCH] Speed optimization --- src/Registration/FactoryRegistration.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Registration/FactoryRegistration.cs b/src/Registration/FactoryRegistration.cs index 967350d8..34db63e0 100644 --- a/src/Registration/FactoryRegistration.cs +++ b/src/Registration/FactoryRegistration.cs @@ -16,8 +16,7 @@ namespace Unity.Registration if (manager is IDisposable managerDisposable) owner.Context.Lifetime.Add(managerDisposable); - LifetimeManager = manager; - //PipelineDelegate = OnResolve; + LifetimeManager = manager is TransientLifetimeManager ? null : manager; // Factory resolver Pipeline = manager switch