I have been trying to implement the http context in the ASP.NET MVC and system.web ,it would just use allow me to use HttpContext.Current to access the context . Anyway I started by injecting the IhttpcontextAccessor in the configureService method in the StartUp Class. I am posting this to see if anyone has implemented this using .Net Core 2.0. If so, please feel free to share the knowledge. Thanks in advance.
services.AddSingleton<HttpContextAccessor, HttpContextAccessor>();