Glimpse/Glimpse — pull request #266 by nikmd23 (2013-08-02 15:08:42+00:00)
Title: Instance based FrameworkProvider needed?

When building out infrastructure support for WebAPI, it looks like we might have found a problem with the design. It would appear that the design of how IFrameworkProvider is used, it assumes that you have access to a static context (like HttpContext.Current).

To clarify, its not IFrameworkProvider itself, but by way of the IGlimpseConfiguration. By default, IGlimpseConfiguration contains a single instance of IFrameworkProvider that will be used throughout the lifetime of the appdomain. It could be possible to inject different IFrameworkProvider here for each request, but since IGlimpseConfiguration is shared between requests, this probably wouldn't work.

Hence, it we need like we need a way to have IFrameworkProvider's created on an request by request basis, to be passed through the runtime.