Mar 02, 2012 08:20 PM|davebettin|LINK
No, there is not. If there is, it is not discoverable. I am sure this isn't recommended, but you can get to the HttpContext from the request.Properties["MS_HttpContext"] key.
Can you elaborate on the issues? This hasn't really impacted our unit tests in our WCF implmentation- We are only really using this for logging/diagnostic purposes and not for any control logic.
It makes unit testing tedious and brittle. How do you mock these types of static objects? It's not fun and requires a lot of ceremony. Another knock on these type of objects is that inevitably leads to tight coupling across your application - separation
of concerns is lost.