This project is read-only.

Using StructureMap Instead Of CastleWindor

May 7, 2010 at 5:44 PM

I would like to use StructureMap instead of CastleWindor for DI in your sample app. Now, I noticed you are using MEF to scan and pick up assemblies with at least one class with an IComponentRegistrar interface, and then running Register() on each such classes. I haven't looked at all registrars yet, but I currently suspect they all just register components into the DI container, correct?

If so, presumably, I could simply use the built-in assembly scanner in StructureMap to achieve the same. I guess the difference is that I cannot perform other types of actions than registration of types into the container, correct?

May 7, 2010 at 6:57 PM

I'm not familiar with StructureMap - so I don't think I can offer any advice I'm afraid.

 

Howard

May 7, 2010 at 8:40 PM

Thanks anyways. You guys have been more than kind with my sudden carpet bombing of questions. :)