Skip to content

autofac/Autofac.AspNetCore

Repository files navigation

Autofac.AspNetCore

ASP.NET Core support and helpers for Autofac.

Build status

Get Packages

This package is not officially published yet.

If you're feeling adventurous, continuous integration builds are on MyGet. As it is currently very small there is no value in publishing it yet. It may never be published. YOU HAVE BEEN WARNED.

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

Using the Autofac implementation of IServiceProviderFactory with WebHostBuilder

The Autofac implementation of the IServiceProviderFactory interface can be used by calling the UseAutofac extension method on an IWebHostBuilder instance.

var host = new WebHostBuilder()
	.UseAutofac()
	.UseKestrel()
	.UseContentRoot(Directory.GetCurrentDirectory())
	.UseIISIntegration()
	.UseStartup<Startup>()
	.Build();

host.Run();

Our ASP.NET Core integration documentation contains more information about using Autofac with ASP.NET Core.

Project

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

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

Autofac extensions and helpers for ASP.NET Core

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published