Speed optimization
This commit is contained in:
Родитель
04f887465f
Коммит
9c7129409c
|
@ -16,8 +16,7 @@ namespace Unity.Registration
|
||||||
if (manager is IDisposable managerDisposable)
|
if (manager is IDisposable managerDisposable)
|
||||||
owner.Context.Lifetime.Add(managerDisposable);
|
owner.Context.Lifetime.Add(managerDisposable);
|
||||||
|
|
||||||
LifetimeManager = manager;
|
LifetimeManager = manager is TransientLifetimeManager ? null : manager;
|
||||||
//PipelineDelegate = OnResolve;
|
|
||||||
|
|
||||||
// Factory resolver
|
// Factory resolver
|
||||||
Pipeline = manager switch
|
Pipeline = manager switch
|
||||||
|
|
Загрузка…
Ссылка в новой задаче