c# - Unity autowiring: to use or not to use? -
It seems that the new unity version has added support for autowiring.
How many of you are familiar with it and I recommend using it or not? I think that its use limits my control over the DI, especially in relation to unit tests, am I thinking wrong?
I'm assuming that this question is about auto-registration , because Unity has self-wiring for years There is a system. As I wrote my article a couple of years ago, I have become a little more radical in my attitude towards Di Containers only. The order of my choice is now: In any production code, DI container. In summary, and in an effort to answer specific questions about unity: In that article, I describe the benefits of using Di Containers and the trade-off.
Comments
Post a Comment