# Scrutor

> Assembly scanning and decoration extensions for Microsoft.Extensions.DependencyInjection

Source: https://talira.ai/catalog/scrutor-dczbn058
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / dependency injection](https://talira.ai/categories/libraries/dependency-injection), [languages / dotnet](https://talira.ai/categories/languages/dotnet)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Kristian Hellang](https://talira.ai/orgs/kristian-hellang.md)

Scrutor is an open source .NET library by Kristian Hellang that adds assembly scanning and decoration to Microsoft.Extensions.DependencyInjection, the dependency injection container built into [.NET](https://talira.ai/catalog/net-9p8d54vj.md). Its Scan method registers every class in an assembly that matches a filter, as its interfaces or a chosen type and with a chosen lifetime, including open generics. Its Decorate method wraps services that are already registered.

## Links

- GitHub: https://github.com/khellang/Scrutor

## Problems it solves

- register all my services automatically by scanning assemblies in ASP.NET Core
- add a decorator to a service registered with Microsoft.Extensions.DependencyInjection
- avoid writing one AddTransient line per class in a .NET app

## Features

- Scan: register every matching class in an assembly with a fluent API
- register as implemented interfaces, a single interface or the class itself
- transient, scoped or singleton lifetimes
- open generic interfaces, including several type parameters
- Decorate: wrap already registered services with decorators

## Trust

Overall: 0.33 out of 1.
Signals: maintenance 0.06, adoption 0.73, momentum 0.46, community 0.69, backing 0.30, extensibility 0.00.

- latest release v7.0.0 12 months ago
- 4.4k GitHub stars
- 51 contributors
- accepts sponsorship (Github, Tidelift, Buy Me A Coffee)
- backed by Kristian Hellang

Warnings:

- last commit 12 months ago

## Related

- Works with [.NET](https://talira.ai/catalog/net-9p8d54vj.md)

## Alternatives

- [Autofac](https://talira.ai/catalog/autofac-0wmzjxr1.md): An addictive Inversion of Control container for .NET

## Sources

[^1]: https://github.com/khellang/Scrutor/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/khellang/Scrutor/blob/master/LICENSE (checked 28 Nov 2026)
