I have a class library which is working on .net MVC. Now I need to migrate that library to .net core library and their is a class that is consuming
HttpContext.Current
(from System.Web namespace)
In .net core HttpContext.Current cannot be utilized.
So how can I get current context in my self contained class.
Even we can use IHttpContextAccessor with DI but as class library is not having any startup kind of files in it for initializing purpose I can't use this as it will give me null.