Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Autofac 9.0.0 documentation
Autofac 9.0.0 documentation
  • Getting Started
  • What’s New
    • Release Notes
    • Upgrading from Autofac 8.x to 9.x
    • Upgrading from Autofac 7.x to 8.x
    • Upgrading from Autofac 6.x to 7.x
    • Upgrading from Autofac 5.x to 6.x
    • Upgrading from Autofac 3.x to 4.x
  • Registering Components
    • Registration Concepts
    • Passing Parameters to Register
    • Property and Method Injection
    • Assembly Scanning
  • Resolving Services
    • Passing Parameters to Resolve
    • Implicit Relationship Types
  • Controlling Scope and Lifetime
    • Working with Lifetime Scopes
    • Instance Scope
    • Captive Dependencies
    • Disposal
    • Lifetime Events
    • Running Code at Container Build
  • Configuration
    • JSON/XML Configuration
    • Modules
  • Application Integration
    • ASP.NET
      • OWIN
      • MVC
      • Web API
      • SignalR
      • Web Forms
    • .NET Core
    • ASP.NET Core
    • Azure Functions
    • Blazor
    • Windows Communication Foundation (WCF)
    • Service Fabric
    • Managed Extensibility Framework (MEF)
    • Common Service Locator
    • Moq
    • FakeItEasy
  • Best Practices and Recommendations
  • Advanced Topics
    • Registration Sources
    • Adapters and Decorators
    • Composites
    • Circular Dependencies
    • Component Metadata / Attribute Metadata
    • Named and Keyed Services
    • Delegate Factories
    • Owned Instances
    • Pooled Instances
    • Custom Constructor Selection
    • Handling Concurrency
    • Multitenant Applications
    • AssemblyLoadContext and Lifetime Scopes
    • Resolve Pipelines
    • Aggregate Services
    • Type Interceptors
    • Native AOT and Trimming
  • Debugging and Troubleshooting
    • The requested service has not been registered
    • No constructors can be found
    • None of the constructors found can be invoked
    • No scope with a matching tag
    • Tracing
    • Metrics
    • Symbols and Sources
  • Examples
    • Examples Repository
    • log4net Integration Middleware
  • Frequently Asked Questions
    • How do I work with per-request lifetime scope?
    • How do I pick a service implementation by context?
    • How do I create a session-based lifetime scope in a web application?
    • Why aren’t my assemblies getting scanned after IIS restart?
    • How do I conditionally register components?
    • How do I change registrations after the container is built?
    • Why isn’t my plugin assembly getting loaded?
    • How do I share component registrations across application types?
    • How do I keep Autofac references isolated away from my app?
    • Why don’t all Autofac packages target the latest Autofac core?
    • How do I inject configuration, environment, or context parameters?
    • How do I pass a parameter to a component in the middle of a resolve chain?
    • Why isn’t container registration analysis built in?
    • Why are things in my Xamarin app misbehaving?
  • Glossary
  • Contributor Guide
  • Getting Support
  • API Documentation
  • Owner’s Guide
Back to top
Copyright © Autofac Project. All rights reserved.
Made with Sphinx and @pradyunsg's Furo