示例#1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         //_db.Dispose();
         _userManager.Dispose();
     }
     base.Dispose(disposing);
 }
示例#2
0
        //[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);
        }
示例#3
0
 public void Dispose()
 {
     _userManager.Dispose();
 }
示例#4
0
 public void Dispose()
 {
     db.Dispose();
     uM.Dispose();
 }