Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An addictive .NET IoC container

License

NotificationsYou must be signed in to change notification settings

autofac/Autofac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autofac characterAutofac logo

Autofac is anIoC container for Microsoft .NET. It manages the dependencies between classes so thatapplications stay easy to change as they grow in size and complexity. This is achieved by treating regular .NET classes ascomponents.

Build statuscodecovNuGet

Autofac on Stack OverflowJoin the chat at https://gitter.im/autofac/autofac

Get Packages

You can get Autofac bygrabbing the latest NuGet package. There are severalapplication integration and extended functionality packages to choose from. If you're feeling adventurous,continuous integration builds are on MyGet.

Release notes are available on GitHub.

Get Help

Need help with Autofac? We havea documentation site as well asAPI documentation. We're ready to answer your questions onStack Overflow or check out thediscussion forum.

Get Started

OurGetting 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 aContainerBuilder and then build the component container.

varbuilder=newContainerBuilder();builder.Register(c=>newTaskController(c.Resolve<ITaskRepository>()));builder.RegisterType<TaskController>();builder.RegisterInstance(newTaskController());builder.RegisterAssemblyTypes(controllerAssembly);varcontainer=builder.Build();

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

vartaskController=container.Resolve<TaskController>();

There is a growing number ofapplication 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 lovecontributions though).

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

Sponsors

Autofac is supported by AWS. Thanks for your contribution!

Contributing / Pull Requests

Refer to theContributor Guide for setting up and building Autofac source.

You can also open this repository right nowin VS Code.

Sponsor this project

  •  
  •  

Packages

 
 
 

Contributors62

Languages


[8]ページ先頭

©2009-2025 Movatter.jp