Should I use OwinContext's Environment to hold application specific data per request
I need a way to store a logging object per request. With HttpContext I would add this to the items Dictionary. I don't want to bring HttpContext into this if I can help it. The below code is what I propose for a Unity LifeTimeManager that will store objects in OwinContext's Environment property, which I have access to with my Owin middleware. public class OwinContextLifetimeManager : LifetimeManager { private string key = (new Guid()).ToString(); private IDictionary<string, object> environment; public OwinContextLifetimeManager(IDictionary<string, object> environment) { this.environment =