What is the reference for HttpContext.GetOwinContext ()?

1

I needed to abstract the Controllers of an application ASP.NET MVC to a Class Library because I'm using different technologies in the same application.

However, I have the error:

  

'System.Web.HttpContextBase' does not contain a definition for 'Current' and in the 'current' extension method accepting the first argument of type 'System.Web.HttpContextBase' could be found an assembly reference?)

I already installed System.Web.Mvc and System.Web

using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Modularizacao.Comum.App_Start;

But it did not solve this dependency. What do I have to reference to avoid this error?

    
asked by anonymous 12.12.2016 / 21:06

1 answer

3

None .

HttpContext.GetOwinContext() is an extension method in System.Net.Http .

Possibly the Microsoft.Owin.Host.SystemWeb package contains the extension.

  

PM > Install-Package Microsoft.Owin.Host.SystemWeb

    
12.12.2016 / 22:01