Пример #1
0
 public AccountController(LibUserManager userManager, LibSignInManager signInManager, ILibraryRepository repo, IAuthenticationManager _authentication)
 {
     UserManager = userManager;
     SignInManager = signInManager;
     _libraryRepository = repo;
     authManager = _authentication;
 }
Пример #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_userManager != null)
                {
                    _userManager.Dispose();
                    _userManager = null;
                    
                }

                if (_signInManager != null)
                {
                    _signInManager.Dispose();
                    _signInManager = null;
                }
                if (_libraryRepository != null)
                {
                    _libraryRepository.Dispose();
                }
            }

            base.Dispose(disposing);
        }