WEBAPi 获取 User
在WEBAPI中获取 权限实体的方法
//this.ActionContext.RequestContext.Principal // 引用 相同User
//HttpContext.Current.User;
注意上面进行赋值的时候,Thread.CurrentPrincipal 也会一并修改
在WEBAPI中获取 权限实体的方法
//this.ActionContext.RequestContext.Principal // 引用 相同User
//HttpContext.Current.User;
注意上面进行赋值的时候,Thread.CurrentPrincipal 也会一并修改