BrandGhost
Head to Head: Registration Callbacks With IServiceCollection And Autofac

Head to Head: Registration Callbacks With IServiceCollection And Autofac

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.
An error has occurred. This application may no longer respond until reloaded. Reload