Access the current HttpContext in ASP.NET Core
Asked 07 September, 2021
Viewed 1.6K times
  • 49
Votes

I need to access current HttpContext in a static method or a utility service.

With classic ASP.NET MVC and System.Web, I would just use HttpContext.Current to access the context statically. But how do I do this in ASP.NET Core?

7 Answer