Autofac
v3.5.2
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?
Glossary
Contributor Guide
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: v3.5.2
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
.