We're upgrading some of our projects from 8.2 to 10.1.
We have some global components that gets deployed into different Sitecore projects, those are in 8.2, 9.3 and 10.1.
We're trying to get those global components compatible with all versions, meaning we upgrade those after a new Sitecore version is released and then deployed to the different instances.
With 10.1, the changes to Sitecore.Pipelines.HttpRequest.HttpRequestArgs are not compatible with 8.2 anymore: basically the property Context got renamed to HttpContext, this was already marked as obsolete in the v9.1.
So my question is, how can I make this code working with both Sitecore versions? One of the options I'm thinking about is to use the System.Web.HttpContext instead, but I didn't deep into enough to check if this would work.
Any suggestion is welcome, Thanks!