它总是说的HttpContext不包括GetOwinContext的定义(),我尝试下载.NET核心owin,但我不知道如何实现相同的功能。该代码可以初级讲座在asp.net 5遵守。
private IAuthenticationManager AuthenticationManager
{
get
{
return HttpContext.GetOwinContext().Authentication;
}
}
没有GetOwinContext()
为Asp.Net的核心。使用HttpContext.Authentication
代替。