Map*_*ory 13 c# asp.net owin asp.net-core
它总是说HttpContext不包含GetOwinContext()的定义,我尝试下载.net核心owin但我不知道如何实现相同的功能.下面的代码可以在asp.net 5中编译.
private IAuthenticationManager AuthenticationManager
{
get
{
return HttpContext.GetOwinContext().Authentication;
}
}
Run Code Online (Sandbox Code Playgroud)
Tra*_*her 14
没有GetOwinContext()Asp.Net核心.请HttpContext.Authentication改用.