From 151462c9b71d9e0e88c91dcb03f87cb0661265d0 Mon Sep 17 00:00:00 2001 From: the Date: Mon, 24 Apr 2023 05:56:20 +0400 Subject: [PATCH] Singleton fix --- ComputersShop/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ComputersShop/Program.cs b/ComputersShop/Program.cs index 6bbafc9..1134116 100644 --- a/ComputersShop/Program.cs +++ b/ComputersShop/Program.cs @@ -64,7 +64,7 @@ namespace ComputersShop DependencyManager.Instance.RegisterType(); DependencyManager.Instance.RegisterType(); DependencyManager.Instance.RegisterType(); - DependencyManager.Instance.RegisterType(); + DependencyManager.Instance.RegisterType(isSingle: true); DependencyManager.Instance.RegisterType(); DependencyManager.Instance.RegisterType();