Scrutor is an assembly scanning and decoration extension for Microsoft.Extensions.DependencyInjection.
The tool solves the problem of verbose, repetitive service registration in dependency injection containers. Rather than manually registering each service one by one, Scrutor scans assemblies to automatically discover and register types based on conventions. It also provides decoration capabilities, allowing you to wrap services with cross-cutting concerns like logging, caching, or validation without modifying the original service implementations.
Scrutor suits projects using the Microsoft.Extensions.DependencyInjection container that want to reduce boilerplate registration code and apply consistent patterns across many services. It is particularly valuable in larger codebases where manual registration becomes unwieldy, and in scenarios where you need to apply decorators to multiple services following a common pattern. The tool integrates directly into the standard ASP.NET Core dependency injection pipeline, making it a natural fit for applications already using that ecosystem.
The project maintains a steady cadence of updates addressing user-reported issues and feature requests. Pull requests receive timely review and feedback from maintainers. The codebase shows active engagement with the community through issue discussions and incorporation of user suggestions into the tool's design.