I'm working on a Nuget library which can be used for web applications (WebForms, MVC, CORE) and will be published for both .NetFramework and .NetStandard.
In my library I need to access the HttpContext for reading the Request and also for redirecting and writing in the Response object.
What's the best way to have a common HttpContext for all three frameworks WebForms, MVC and CORE?
Note that Microsoft.Owin is not compatible with .NetStandard and also in WebForms and MVC there is a System.Web.HttpContextBase class which is completely different in .NETCore projects and there we have Microsoft.AspNetCore.Http.HttpContext.