ASP.NET Core Dependency Injection can be improved with the Scrutor library, which extends the features of Microsoft.Extensions.DependencyInjection. Scrutor allows for assembly scanning and service decoration, reducing boilerplate code and making the DI setup cleaner and more maintainable.
Table of contents
What is Dependency Injection?Service Lifetimes in ASP.NET CoreWhat is Scrutor?Assembly Scanning With ScrutorService Decoration With ScrutorTakeawaySort: