GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JerryForNet/Autofac: An addictive .NET IoC container

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,872 Commits
1,872 Commits

Folders and files

NameName
Last commit message
Last commit date
build
build
 
 
samples/AutofacWebApiSample
samples/AutofacWebApiSample
 
 
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.mailmap
.mailmap
 
 
Autofac.sln
Autofac.sln
 
 
Autofac.sln.DotSettings
Autofac.sln.DotSettings
 
 
Autofac.snk
Autofac.snk
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
ISSUE_TEMPLATE.md
ISSUE_TEMPLATE.md
 
 
LICENSE
LICENSE
 
 
NuGet.Config
NuGet.Config
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
build.ps1
build.ps1
 
 
global.json
global.json
 
 

Repository files navigation

Autofac

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

MyGet publish status

Get Packages

You can get Autofac by grabbing the latest NuGet packages or using our NuGet script builder to get exactly what you need.

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.

  • Autofac - Core dependency resolution and common functions (this repo).
  • Autofac.Configuration - JSON/XML file-based configuration support.
  • Autofac.Extras.AggregateService - Dynamic aggregate service implementation generation.
  • Autofac.Extras.AttributeMetadata - Metadata scanning/filtering through attributes.
  • Autofac.Extras.CommonServiceLocator - Common Service Locator implementation backed by Autofac.
  • Autofac.Extras.DomainServices - RIA/domain services support.
  • Autofac.Extras.DynamicProxy - Decorators and interceptors.
  • Autofac.Extras.EnterpriseLibraryConfigurator - Enterprise Library 5 configuration support.
  • Autofac.Extras.FakeItEasy - FakeItEasy mocking framework integration.
  • Autofac.Extras.Moq - Moq mocking framework integration.
  • Autofac.Extras.MvvmCross - MvvmCross integration.
  • Autofac.Extras.NHibernate - NHibernate integration.
  • Autofac.Mef - MEF catalog integration.
  • Autofac.Multitenant.Wcf - Multitenant WCF service hosting.
  • Autofac.Multitenant - Multitenant dependency resolution support.
  • Autofac.Mvc.Owin - OWIN support for ASP.NET MVC.
  • Autofac.Owin - Core OWIN support - shared middleware for request lifetime integration.
  • Autofac.SignalR - Application integration for SignalR.
  • Autofac.Wcf - WCF service hosting.
  • Autofac.Web - ASP.NET web forms integration.
  • Autofac.WebApi.Owin - OWIN support for Web API.
  • Autofac.WebApi - Application integration for Web API.

Contributing / Pull Requests

Refer to the Readme for Autofac Developers for setting up and building Autofac source. We also have a contributors guide to help you get started.

About

An addictive .NET IoC container

autofac.org

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.