WCF - StructureMap - Caching objects for the duration of the request only
        Posted  
        
            by Maxim
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Maxim
        
        
        
        Published on 2010-03-24T19:51:08Z
        Indexed on 
            2010/03/24
            19:53 UTC
        
        
        Read the original article
        Hit count: 290
        
So I already have a working implementation of StructureMap with the WCF service (including custom instance provider, behaviors, etc.)
When I try to have an object that is instantiated only once per user request, I use the InstanceScope.HttpContext and it throws because the context is null.
Do anyone have a proper way of doing that?
© Stack Overflow or respective owner