Head to Head: Registration Callbacks With IServiceCollection And Autofac
June 19, 2024
• 459 views
Autofaciocmicrosoft mvpinversion of controldependency injectionautofac dependency injection web api c#autofac asp.net coredependency injection c# autofacc# autofac dependency injectionautofac dependency injection c#c# autofacautofac c#autofac tutorialdotnetc# autofac tutorialdependency inversion principle tutorialinversión de controlIServiceCollectionc# dependency injection tutorialc# dependency injection exampledesign patterns.netC#csharp
If you know me you know that I love this ONE thing in C#...
Autofac.
It's probably my favorite nuget package that we have access to. But this love for Autofac was started many moons ago when I needed to scratch my itch for dependency injection and there was simply no better option.
Fast forward a bajillion years and we have a contender...
IServiceCollection is the build-in dependency injection framework that we have from Microsoft and it's come a VERY long way. So let's compare how we do registration callbacks between these two frameworks.
