IoC, AOP and more

前端 未结 3 833
难免孤独
难免孤独 2020-12-29 10:42

What is an IoC container?

What is an IoC/DI framework?

Why do we need a framework for IoC/DI?

Is there any relationship between IoC/DI and AOP?

3条回答
  •  猫巷女王i
    2020-12-29 11:01

    JMSA,

    James Kovacs wrote a fantastic article which covers many of your questions I would recommend reading it Here

    Spring.Net, Ninject, Unity, Castle Windsor, Autofac are all IOC containers which are configurable in different ways, many of them do also support AOP.

    Frameworks for IOC/DI are useful because they provide standard mechanisms, for example if you are hiring a new developer it is much easier to say, we use this framework and pass them the links to the tutorials / help guide. At the same time these frameworks are tried and tested by a large community / companies.

    Let me know if any of your questions remain unanswered after reading the article and the above answes and I'll do my best to provide further assistance.

提交回复
热议问题