What should I consider when choosing a dependency injection framework for .NET

前端 未结 4 1871
不知归路
不知归路 2020-12-08 04:28

see also Which C#/.NET Dependency Injection frameworks are worth looking into?

There are now many dependency injection frameworks to

4条回答
  •  自闭症患者
    2020-12-08 05:21

    I think the choice comes down to finding a framework that meets your requirements and then personal preference.

    Does your project already use a library such as rhino-tools that already integrates with a DI framework? If it does, that might be a good starting point if you want to avoid using "lots of different dependency injection frameworks".

    Check out these two posts:

    • SO: Enterprise Library Unity vs Other IoC Containers
    • SO: Which .NET dependency injection framework do you use?

提交回复
热议问题