转载:http://www.jetwu.cn/archives/737 winform treeView 数据绑定 private void Form1_Load(object sender, EventArgs e) { Types = new List<UrlTypes>() { , Name = }, , Name = }, , Name = }, , Name = }, , Name = }, , Name = }, , Name = } }; var topNode = new Tr
1. 用户登录时,将用户的权限写入Cookie: //将需要的信息写入claims后 var identity = new ClaimsIdentity(claims, IdentityConstants.ApplicationScheme); var userPrincipal = new ClaimsPrincipal(identity); await HttpContext.SignInAsync(IdentityConstants.ApplicationScheme, userPrinc