Re:What Makes .NET Core So Special?
by ahoka on Friday November 09, 2018 @01:43AM
(#18412775)
Yes, you can. If you don't need anything fancy (in that case you are better off with autofac), then you can just add the nuget to your console app and start using it with a few lines of code.
[ Parent
| on HN ]
to be fair autofac is not really needed in most projects.
you can even write a bunch of lines that will automatically register all your controller dependencies. (of course autofac makes this more simple). but I actually prefer explicit registration (i had the implicit variant on guice and as soon as the project was big, implicit is a mess).
Re:What Makes .NET Core So Special?
by joshschreuder on Friday November 09, 2018 @06:28AM
(#18413724)
There's also Scrutor (https://github.com/khellang/Scrutor) which makes assembly scanning and registering dependencies really easy too