public void Dispose() { _externalLoginRepository = null; _roleRepository = null; _userRepository = null; _context.Dispose(); }
/// <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); }
private void Dispose(bool disposing) { if (!disposed && disposing) { dataDb.Dispose(); securityDb.Dispose(); disposed = true; } }
//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(); } }
public void Dispose() { _context.Dispose(); }