blog.pedrofelix.org
Accessing the HTTP Context on ASP.NET Core
TL;DR On ASP.NET Core, the access to the request context can be done via the new IHttpContextAccessor interface, which provides a HttpContext property with this information. The IHttpContextAccesso…