Пример #1
0
 public void Dispose()
 {
     _externalLoginRepository = null;
     _roleRepository          = null;
     _userRepository          = null;
     _context.Dispose();
 }
Пример #2
0
 /// <summary>
 /// Dispose All Resource
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db = Request.GetOwinContext().Get <SecurityDbContext>();
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #4
0
        private void Dispose(bool disposing)
        {
            if (!disposed && disposing)
            {
                dataDb.Dispose();
                securityDb.Dispose();

                disposed = true;
            }
        }
Пример #5
0
        //public DataProtectorTokenProvider<ApplicationUser> UserToken { get; set; }

        public void Dispose()
        {
            if (_userManager != null)
            {
                _userManager.Dispose();
            }
            if (_roleManager != null)
            {
                _roleManager.Dispose();
            }
            if (_signInManager != null)
            {
                _signInManager.Dispose();
            }
            if (_authManager != null && _authManager is IDisposable)
            {
                ((IDisposable)_authManager).Dispose();
            }

            if (_db != null)
            {
                _db.Dispose();
            }
        }
Пример #6
0
 public void Dispose()
 {
     _context.Dispose();
 }