StructureMap with WCF?

Has anyone managed to integrate StructureMap (DI Framework) with WCF?

I can return the default instance to the constructor of my WCF service like this, but obviously this is not ideal.

public MemberService()
{
     this.memberRepository = StructureMap.ObjectFactory.GetInstance<IMemberRepository>();
}

I have seen that (http://www.lostechies.com/blogs/jimmy_bogard/archive/2008/07/29/integrating-structuremap-with-wcf.aspx ), but was not lucky enough to configure it, because I think it is incompatible with the latest version of StructureMap version 2.5+.

+3
source share
1 answer

All Articles