# Autofac

> An addictive Inversion of Control container for .NET

Source: https://talira.ai/catalog/autofac-0wmzjxr1
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / dependency injection](https://talira.ai/categories/libraries/dependency-injection)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Autofac project](https://talira.ai/orgs/autofac-project.md)

Autofac is an inversion of control (dependency injection) container for .NET and ASP.NET Core. You register components with lambdas, types or ready-made instances, or scan assemblies for them, and Autofac builds each object with its constructor parameters filled in, with property and method injection too. It manages lifetimes and scopes, groups registrations into modules, and plugs into ASP.NET Core's built-in DI through Autofac.Extensions.DependencyInjection; Autofac.Extras.DynamicProxy adds interceptors.

## Links

- Website: https://autofac.org/
- GitHub: https://github.com/autofac/Autofac
- Docs: https://autofac.readthedocs.io/

## Problems it solves

- wire up dependencies in a growing .NET app without newing everything by hand
- register all my repository classes automatically by naming convention in C#
- replace ASP.NET Core's built-in DI with a container that has modules and assembly scanning

## Features

- dependency injection container for .NET and ASP.NET Core
- register by lambda, type, instance or assembly scanning
- constructor, property and method injection
- lifetime scopes and modules
- plugs into ASP.NET Core's built-in DI
- interceptors through DynamicProxy

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.72, adoption 0.73, momentum 0.45, community 0.78, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 18 commits in the last 90 days
- latest release v9.3.4 2 months ago
- 4.7k GitHub stars
- 87 contributors
- accepts sponsorship (Github)
- backed by Autofac project

## Alternatives

- [Scrutor](https://talira.ai/catalog/scrutor-dczbn058.md): Assembly scanning and decoration extensions for Microsoft.Extensions.DependencyInjection
- [Simple Injector](https://talira.ai/catalog/simple-injector-5bqgdn0b.md): An easy, fast dependency injection library for .NET with strong diagnostics

## Sources

[^1]: https://github.com/autofac/Autofac/blob/develop/LICENSE (checked 27 Nov 2026)
