dotnet / systemweb-adapters

MIT License
332 stars 58 forks source link

Prefer IHttpContextAccessor over HttpContextAccessor #471

Closed twsouthwick closed 6 months ago

twsouthwick commented 6 months ago

This change will check if we're currently in a runtime environment that contains a IHttpContextAccessor; if we are, then we'll prefer that over HttpContextAccessor. This allows people to potentially customize what it means to get and set a HttpContext.

twsouthwick commented 6 months ago

@joperezr can you approve this? sharepoint needs to be able to use a custom IHttpContextAccessor