I am converting an existing Asp.net Mvc project to .Net Core now the issue is this get method
public ApplicationUserManager UserManager
{
get
{
return _userManager ??
HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>();
}
private set
{
_userManager = value;
}
}
In Mvc we could fetch OwinContext using
HttpContext.GetOwinContext().GetUserManager()
but in case of .Net Core GetOwinContext not present , When I compare definition of HttpContext of both classes
HttpContextBase is type in case of Mvc but in case of Core there is HttpContext which has no extension method in same namespace as HttpContextBase that's why this extension method was not found ,Please let me know how to do this in Core?