diff --git a/CarRepairShop/CarRepairShopContracts/DI/UnityDependencyContainer.cs b/CarRepairShop/CarRepairShopContracts/DI/UnityDependencyContainer.cs index 394ccbd..aa9c43c 100644 --- a/CarRepairShop/CarRepairShopContracts/DI/UnityDependencyContainer.cs +++ b/CarRepairShop/CarRepairShopContracts/DI/UnityDependencyContainer.cs @@ -19,7 +19,7 @@ namespace CarRepairShopContracts.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); }