コード例 #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && _userManager != null)
            {
                _userManager.Dispose();
                _userManager = null;
            }
            if (disposing && _roleManager != null)
            {
                _roleManager.Dispose();
                _roleManager = null;
            }

            base.Dispose(disposing);
        }
コード例 #2
0
 public AgentController(AgentUserManager userManager, AgentRoleManager roleManager)
 {
     UserManager = userManager;
     RoleManager = roleManager;
 }