In ASP.NET MVC Core 2.0 you can inject the ActionContext
, into services, using the IActionContextAccessor
interface.
I would like to do the same in Razor Pages but there isn't (from what I can see) an IPageContextAccessor
.
Doe anyone know how to inject the PageContext
into a service?