Closed entith closed 6 years ago
The fix for issue #50 is no longer sufficient in ASP.NET Core 2.1.
It looks like IHttpContextAccessor is no longer registered with the DI container by default because maintaining [its] state has non-trivial performance costs":
IHttpContextAccessor
Quick fix is to register it manually:
services.AddHttpContextAccessor();
The fix for issue #50 is no longer sufficient in ASP.NET Core 2.1.
It looks like
IHttpContextAccessor
is no longer registered with the DI container by default because maintaining [its] state has non-trivial performance costs":Quick fix is to register it manually: