It will be useful to create a new IHttpContextAccessor interface which make the HttpContext available using DI injection.