Skip to content

Repository files navigation

Autofac.AspNetCore

ASP.NET Core support and helpers for Autofac.

Build status codecov

Please file issues and pull requests for this package in this repository rather than in the Autofac core repo.

Quick Start

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 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.

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.

About

Autofac extensions and helpers for ASP.NET Core

Resources

Code of conduct

Contributing

Stars

10 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages