ASP.NET Core support and helpers for Autofac.
Please file issues and pull requests for this package in this repository rather than in the Autofac core repo.
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.
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.
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.