About 3,070 results
Open links in new tab
  1. Autofac: Home

    If you're new to Autofac, the Quick Start guide is a good place to start. There's also an official documentation site, API documentation, and lots of info on the Autofac wiki.

  2. Welcome to Autofac’s documentation! — Autofac 7.0.0 …

    Welcome to Autofac’s documentation! Autofac is an addictive IoC container for .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in …

  3. Getting Started — Autofac 7.0.0 documentation

    The sample app gives you an idea of how to use Autofac, but there’s a lot more you can do. Check out the list of integration libraries to see how to integrate Autofac with your application.

  4. Property and Method Injection — Autofac 7.0.0 documentation

    From Autofac 7.0 onwards, for reflection components, all required properties are automatically resolved at the time of object construction, and are generally treated in much the same way as …

  5. Web API — Autofac 7.0.0 documentation

    If you are unable to use the Autofac interfaces and you need per-request or instance-per-dependency services in your filters, you must use service location. Luckily, Web API makes …

  6. ASP.NET Core — Autofac 7.0.0 documentation

    In your Startup class (which is basically the same across all the versions of ASP.NET Core) you then use ConfigureContainer to access the Autofac container builder and register things …

  7. .NET Core — Autofac 7.0.0 documentation

    If you aren’t writing a .NET Core app that requires it or if you’re not using any of the DI extensions provided by other libraries you can consume Autofac directly. You also may only need to do …

  8. Named and Keyed Services — Autofac 7.0.0 documentation

    The metadata feature of Autofac provides a KeyFilterAttribute that allows you to mark constructor parameters with an attribute specifying which keyed service should be used.

  9. Modules — Autofac 7.0.0 documentation

    Example In Autofac, modules implement the Autofac.Core.IModule interface. Generally they will derive from the Autofac.Module abstract class. This module provides the IVehicle service:

  10. Registration Concepts — Autofac 7.0.0 documentation

    When you resolve your component, Autofac will see that you have an ILogger registered, but you don’t have an IConfigReader registered. In that case, the second constructor will be chosen …