From 9f553b776144eeb789d651611285be728c49211c Mon Sep 17 00:00:00 2001 From: funa4i Date: Tue, 29 Oct 2024 13:51:51 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0=B9=D0=BD?= =?UTF-8?q?=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StudentProgressRecord/Program.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/StudentProgressRecord/Program.cs b/StudentProgressRecord/Program.cs index 80291d0..3b95758 100644 --- a/StudentProgressRecord/Program.cs +++ b/StudentProgressRecord/Program.cs @@ -1,4 +1,5 @@ +using StudentProgressRecord.IRepositories; using StudentProgressRecord.Repositories; using StudentProgressRecord.RepositoryImp; using Unity; @@ -24,16 +25,6 @@ namespace StudentProgressRecord { var container = new UnityContainer(); - container.RegisterType - (new TransientLifetimeManager()); - - - container.RegisterType - (new TransientLifetimeManager()); - - - container.RegisterType - (new TransientLifetimeManager()); container.RegisterType (new TransientLifetimeManager()); @@ -47,6 +38,9 @@ namespace StudentProgressRecord container.RegisterType (new TransientLifetimeManager()); + container.RegisterType + (new TransientLifetimeManager()); + return container; }