Scrutor in .NET – Auto-Register Dependencies for Cleaner and Scalable DI
Scrutor is a lightweight, open-source library that extends .NET’s built-in Dependency Injection with powerful assembly scanning features. In this article, you’ll learn how to use Scrutor to automatically register services by convention - based on interface names, lifetimes, or attributes. We’ll walk through real-world examples like scanning entire assemblies, registering services with custom logic, and cleaning up your DI setup for maintainability and scalability.