Introducing Scrutor
You don't always need to replace the existing .NET Core DI container to get and use some cool features. At the beginning of this chapter, I mentioned the autoregistration of services, which can be done with other DI containers. This can also be done with a nice NuGet package called Scrutor (https://github.com/khellang/Scrutor) by Kristian Hellang (https://kristian.hellang.com). Scrutor extends IServiceCollection
to automatically register services with the .NET Core DI container.
Note
Andrew Lock has published a pretty detailed blog post relating to Scrutor. Rather than just repeating what he said, I suggest that you just go ahead and read that post to learn more about it: Using Scrutor to automatically register your services with the ASP.NET Core DI container, which is available at https://andrewlock.net/using-scrutor-to-automatically-register-your-services-with-the-asp-net-core-di-container/.