From 58cd87220af2b51560fa90011d17a1798dadaabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F?= <Илья@WIN-RANNDDD> Date: Sat, 18 May 2024 17:47:12 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=84=D0=B8=D0=BA=D1=81=D0=B8?= =?UTF-8?q?=D0=BB=20Unity-=D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0=B9=D0=BD=D0=B5?= =?UTF-8?q?=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IceCreamShopContracts/DI/UnityDependencyContainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IceCreamShop/IceCreamShopContracts/DI/UnityDependencyContainer.cs b/IceCreamShop/IceCreamShopContracts/DI/UnityDependencyContainer.cs index 7a09e75..133b539 100644 --- a/IceCreamShop/IceCreamShopContracts/DI/UnityDependencyContainer.cs +++ b/IceCreamShop/IceCreamShopContracts/DI/UnityDependencyContainer.cs @@ -19,7 +19,7 @@ namespace IceCreamShopContracts.DI _container.AddExtension(new LoggingExtension(factory)); } - void IDependencyContainer.RegisterType(bool isSingle) + public void RegisterType(bool isSingle) where U : class, T where T : class { _container.RegisterType(isSingle ? TypeLifetime.Singleton : TypeLifetime.Transient); }