DEV Community

baris
baris

Posted on

Answer: How to create an Instance of an Object in StructureMap Dynamically?

I am sorry, but I disagree with the answers general assertion.

You shouldn't need to create concrete factories if you are using IoC...that is the whole point of dependency injection.

Consider this small example...

  • The UnitOfWork will be instantiated by StructureMap
  • The BankAccountApplication can & should also be instantiated by…

I need to read it more carefully

Top comments (0)