I have a one way WCF service using the MSMQ Binding which is activated using Windows Activation Service in IIS 7.0.
I'm a big fan on NInject so I've been using the NInject extension for WCF, which for a typical HTTP WCF service would work great.
However, in WAS activate services there is no HTTP pipeline, so I can't use InRequestScope when binding my types because System.Web.HttpContext.Current is null. I'm struggling to find an alternative when using WAS that will give me what I want. AspCompatibility mode attribute doesn't work in this mode either.
I thought InThreadScope might work, but the service is created in a separate thread than what it is executed in.
So basically I need the equivalent of the the HttpContext for WCF+WAS to scope my objects at the request level. Is there some static object in this world that would work the same way or does anyone else have any ideas on something I can hack together?