DEV Community

baris
baris

Posted on

1

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)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more