2 questions here.I have a page that I already use setter DI to insert a service layer using the following snippet from another post.
I am using wcf 4 and trying to use some Ioc container to resolve service dependencies. I was looking at Castle Windsor and StructureMap. I haven\'t use any of them with wcf.
We\'re going to be using a custom role provider with WCF.The overridden method GetRolesForUser will require the use of an already existing RoleRepository.
Using StructureMap, I\'m trying to use setter injection on an open generic type. I have an abstract generic class:
I am trying out the code from this post on Event Driven Architecture (very interesting by the way). His IOC container is Unity though and I would like to do this using Structure map.
I am constantly facing this error while testing. I cannot even create an instance of IRoleRepository which should return RoleRepository.
I have a question about how InstanceScope.Singleton works, because I am getting some unexpected results here:
I\'m testing some code that uses StructureMap for Inversion of Control and problems have come up when I use different concrete classes for the same interface.
I was trying to build a social networking site from ASP.NET 3.5 Social Networking book. When I run the code I see the following problems:
I\'m using Prism and the Unity IoC container that comes along with Prism. However, I\'d like to use a different IoC container if that\'s doable. So; is it? Preferrably I\'d like to use StructureMap. N