摘要: 我们的目标是在后台业务处理类中,能够很容易的取得用户信息或者其它HTTP请求相关的信息。所以,首先我们需要一个存储这些信息的类:1 public class RequestData2 {3 public string UserName { get; set; }4 5... 阅读全文
posted @ 2015-12-09 21:14 乁卬杨 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 1、Startup类的Configure方法中,app.UseIdentity();改为app.UseCookieAuthentication(options => { options.AuthenticationScheme = CookieA... 阅读全文
posted @ 2015-12-09 07:44 乁卬杨 阅读(1607) 评论(1) 推荐(0) 编辑