Much like the ASP.NET OWIN which had an OwinContext, There is also an IDictionary<object, object> in ASP.NET Core's HttpContext.Items property. It would be nice to have some kind of helper to ease the access of such items in order to not to inject HttpContextAccessor everywhere.
The following work of Steve Gordon might be helpful:
https://github.com/stevejgordon/CorrelationId
Much like the ASP.NET OWIN which had an
OwinContext, There is also anIDictionary<object, object>in ASP.NET Core'sHttpContext.Itemsproperty. It would be nice to have some kind of helper to ease the access of such items in order to not to injectHttpContextAccessoreverywhere.The following work of Steve Gordon might be helpful:
https://github.com/stevejgordon/CorrelationId