What method of dependency injection should be used in dotnet?

[5/14/09 Edition: I need this to target Dotnet 2.0 due to my deployment scenario]

I am new to Injection Dependency and IoC.

I see that there are many containers and libraries to help the process.

What are the pros and cons of using these libraries. What is your favorite (dotnet) container and why?

How about rolling your own dependency injection container?

Thanks,

Peter Stevens

+3
source share
8 answers

, , AutoFac , , . .

, ( , DI), Castle Windsor, , , . , StrcutureMap.

+3
+2

IOC, StructureMap: .

+1

: Ninject . Dotnet 2.0. XML.

- DI .

+1

+1

MEF, , .NET 4.0 ( MS , " DI Visual Studio 2010).

, DI. DI Add-In , .

IoC, .

0
0

Spring.NET. DI Spring, , ( DLL). , Quartz NHibernate, DLL - . , . , , .NET.

0

Source: https://habr.com/ru/post/1708584/


All Articles