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 @@ + + + +