From f57191019dbc6fc1dd4fe24eca9b4b020280621f Mon Sep 17 00:00:00 2001 From: kotcheshir73 Date: Sun, 28 Mar 2021 10:31:10 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=BF=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B1=D0=B8=D0=B1=D0=B8=D0=BB=D0=BE?= =?UTF-8?q?=D1=82=D0=B5=D0=BA=D0=B8=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20?= =?UTF-8?q?=D0=B1=D1=81=D0=BE=D1=80=D0=BA=D0=B8=20=D1=84=D0=B8=D0=BA=D1=81?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B5=D0=B4=D1=8B=D0=B4=D1=83=D1=89=D0=B5=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/DatabaseCore/SecurityManager.cs | 24 ------------------- .../SecurityImplementation.csproj | 6 ++++- .../SecurityWindowsDesktop.csproj | 6 ++++- 3 files changed, 10 insertions(+), 26 deletions(-) diff --git a/DepartmentPortal/Common/DatabaseCore/SecurityManager.cs b/DepartmentPortal/Common/DatabaseCore/SecurityManager.cs index 26eaf17..2d15f49 100644 --- a/DepartmentPortal/Common/DatabaseCore/SecurityManager.cs +++ b/DepartmentPortal/Common/DatabaseCore/SecurityManager.cs @@ -18,30 +18,6 @@ namespace DatabaseCore private readonly int _countMaxAttempt = 3; - private static SecurityManager _securityManager; - - private static readonly object _lockObject = new(); - - private SecurityManager() { } - - /// - /// Singleton для класса - /// - public static SecurityManager GetInstance - { - get - { - if (_securityManager == null) - { - lock (_lockObject) - { - _securityManager = new SecurityManager(); - } - } - return _securityManager; - } - } - public Guid? User { get; set; } public List Roles { get; set; } diff --git a/DepartmentPortal/Security/SecurityImplementation/SecurityImplementation.csproj b/DepartmentPortal/Security/SecurityImplementation/SecurityImplementation.csproj index 643705d..050e986 100644 --- a/DepartmentPortal/Security/SecurityImplementation/SecurityImplementation.csproj +++ b/DepartmentPortal/Security/SecurityImplementation/SecurityImplementation.csproj @@ -5,7 +5,7 @@ - ..\..\ImplementationExtensions\ + @@ -13,4 +13,8 @@ + + + + diff --git a/DepartmentPortal/Security/SecurityWindowsDesktop/SecurityWindowsDesktop.csproj b/DepartmentPortal/Security/SecurityWindowsDesktop/SecurityWindowsDesktop.csproj index d74a1a4..1f1202e 100644 --- a/DepartmentPortal/Security/SecurityWindowsDesktop/SecurityWindowsDesktop.csproj +++ b/DepartmentPortal/Security/SecurityWindowsDesktop/SecurityWindowsDesktop.csproj @@ -6,7 +6,7 @@ - ..\..\WindowDestopExtensions\ + @@ -21,4 +21,8 @@ + + + +