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); }