Autofac
v4.0.0
Getting Started
What’s New / Release Notes
Registering Components
Resolving Services
Controlling Scope and Lifetime
Configuration
Application Integration
Best Practices and Recommendations
Advanced Topics
Examples
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 share component registrations across application types?
How do I keep Autofac references isolated away from my app?
Why are “old versions” of the framework (e.g., System.Core 2.0.5.0) referenced?
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?
Glossary
Contributor Guide
Getting Support
API Documentation
Autofac
Docs
»
Frequently Asked Questions
»
How do I conditionally register components?
Edit on GitHub
How do I conditionally register components?
¶
Note for doc writing: This will be about using modules or XML config to do the logic.
Read the Docs
v: v4.0.0
Versions
latest
stable
v4.0.0
v3.5.2
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.