All Projects → autofac → Autofac

autofac / Autofac

Licence: mit
An addictive .NET IoC container

Programming Languages

C#
18002 projects
powershell
5483 projects

Projects that are alternatives of or similar to Autofac

Autofac.Configuration
Configuration support for Autofac IoC
Stars: ✭ 35 (-99.06%)
Mutual labels:  netcore, ioc-container, netstandard, autofac
Singularity
A extremely fast ioc container for high performance applications
Stars: ✭ 63 (-98.3%)
Mutual labels:  netstandard, netcore, dependency-injection, ioc-container
DotNetDynamicInjector
💉 Dynamically reference external dlls without the need to add them to the project. Leave your project with low dependency and allowing specific dlls according to your business rule or database parameters.
Stars: ✭ 18 (-99.52%)
Mutual labels:  dependency-injection, netcore, netstandard
KickStart
Application initialization helper
Stars: ✭ 42 (-98.87%)
Mutual labels:  dependency-injection, ioc-container, autofac
Dryioc
DryIoc is fast, small, full-featured IoC Container for .NET
Stars: ✭ 555 (-85.05%)
Mutual labels:  netstandard, netcore, dependency-injection
Blog.core
💖 ASP.NET Core 6.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
Stars: ✭ 3,542 (-4.61%)
Mutual labels:  netcore, dependency-injection, autofac
Kangaru
🦘 A dependency injection container for C++11, C++14 and later
Stars: ✭ 297 (-92%)
Mutual labels:  dependency-injection, ioc-container
Oragon.Spring
Spring.NET (spring.core + spring.aop) on .NET Standard 2.0
Stars: ✭ 19 (-99.49%)
Mutual labels:  dependency-injection, ioc-container
AvroConvert
Apache Avro serializer for .NET
Stars: ✭ 44 (-98.81%)
Mutual labels:  netcore, netstandard
onvif-discovery
C# .NetStandard 2.0 library to discover ONVIF compliant devices
Stars: ✭ 29 (-99.22%)
Mutual labels:  netcore, netstandard
MediatR.Extensions.Autofac.DependencyInjection
Autofac plug-in for MediatR.
Stars: ✭ 30 (-99.19%)
Mutual labels:  ioc-container, autofac
Cosmos.Identity
A Cosmos storage provider for ASP.NET Core Identity.
Stars: ✭ 26 (-99.3%)
Mutual labels:  netcore, netstandard
pythondi
Python lightweight dependency injection library
Stars: ✭ 26 (-99.3%)
Mutual labels:  dependency-injection, ioc-container
AmiClient
Modern .NET Standard client for accessing the Asterisk AMI protocol using async/await and Reactive Extensions (Rx)
Stars: ✭ 30 (-99.19%)
Mutual labels:  netcore, netstandard
WinReform
A simple tool to help resize and relocate stubborn windows.
Stars: ✭ 20 (-99.46%)
Mutual labels:  netcore, autofac
alpha-dic
Powerful dependency injection container for node.js
Stars: ✭ 27 (-99.27%)
Mutual labels:  dependency-injection, ioc-container
MyDAL
The fastest and best ORM lite on C# for MySQL ! -- 友好, 轻量, 极致性能, 无任何第三方依赖, 持续演进~~
Stars: ✭ 32 (-99.14%)
Mutual labels:  netcore, netstandard
brisk-ioc
fast light brisk ioc/di container on nodejs; Node下快速 轻量的IoC/DI容器,依赖注入,配合装饰器使用
Stars: ✭ 12 (-99.68%)
Mutual labels:  dependency-injection, ioc-container
SimCaptcha
✅ 一个简单易用的点触验证码 (前端+后端)
Stars: ✭ 49 (-98.68%)
Mutual labels:  netcore, netstandard
Nlog.extensions.logging
NLog Provider for Microsoft.Extensions.Logging for .NET Standard libraries and .NET Core applications
Stars: ✭ 323 (-91.3%)
Mutual labels:  netstandard, netcore

Autofac is an IoC container for Microsoft .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity. This is achieved by treating regular .NET classes as components.

Build status codecov MyGet publish status NuGet

Autofac on Stack Overflow Join the chat at https://gitter.im/autofac/autofac Open in Visual Studio Code

Get Packages

You can get Autofac by grabbing the latest NuGet packages. If you're feeling adventurous, continuous integration builds are on MyGet.

Release notes are available on the wiki.

Get Help

Need help with Autofac? We have a documentation site as well as API documentation. We're ready to answer your questions on Stack Overflow or check out the discussion forum.

Get Started

Our Getting Started tutorial walks you through integrating Autofac with a simple application and gives you some starting points for learning more.

Super-duper quick start:

Register components with a ContainerBuilder and then build the component container.

var builder = new ContainerBuilder();

builder.Register(c => new TaskController(c.Resolve<ITaskRepository>()));
builder.RegisterType<TaskController>();
builder.RegisterInstance(new TaskController());
builder.RegisterAssemblyTypes(controllerAssembly);

var container = builder.Build();

Resolve services from a lifetime scope - either the container or a nested scope:

var taskController = container.Resolve<TaskController>();

There is a growing number of application integration libraries that make using Autofac with your application a snap. Support for several popular frameworks is also available through the "Extras" packages.

Intrigued? Check out our Getting Started walkthrough!

Project

Autofac is licensed under the MIT license, so you can comfortably use it in commercial applications (we still love contributions though).

File issues in the repo with the associated feature/code.

Contributing / Pull Requests

Refer to the Contributor Guide for setting up and building Autofac source.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].