IoC from start to finish

I am absolutely sure that IoC is the way to go for my application. There are many articles and even issues that discuss various containers. Today I read several blogs with partial examples. I personally tend to start with CommonServiceLocator and Unity as two ways to solve the same problem. I just need an assembly group to retrieve data from a database, which I believe is what needs to be entered everywhere.

I have not yet found sites that really take the problem from beginning to end, with specific code examples. For example, I have not yet found one that discusses IServiceLocator and how to register it (or do whatever it takes to report it).

Your favorite posts / articles / Questions that noob can take from start to finish with implementation?

+3
source share
2 answers

If you have not read them yet, I recommend:

(I also recommend reading the ploeh blog - Mark writes about DI as well or better than anyone).

None of the examples provide an end-to-end application example, but together they provide a complete diagram.

( , , , ), "Hevery", , DI . ( Hevery Mark Seemann " " "- " - ", , , " t !)

, , , : , .

+3
0

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


All Articles