Beispiel #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         //_db.Dispose();
         _userManager.Dispose();
     }
     base.Dispose(disposing);
 }
        //[ChildActionOnly]
        //public ActionResult RemoveAccountList()
        //{
        //    var linkedAccounts = UserManager.GetLogins(User.Identity.GetUserId());
        //    ViewBag.ShowRemoveButton = HasPassword() || linkedAccounts.Count > 1;
        //    return (ActionResult)PartialView("_RemoveAccountPartial", linkedAccounts);
        //}

        protected override void Dispose(bool disposing)
        {
            if (disposing && UserManager != null)
            {
                UserManager.Dispose();
                UserManager = null;
            }
            base.Dispose(disposing);
        }
Beispiel #3
0
 public void Dispose()
 {
     _userManager.Dispose();
 }
 public void Dispose()
 {
     db.Dispose();
     uM.Dispose();
 }