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
  • Edit on GitHub

Frequently Asked QuestionsΒΆ

  • How do I work with per-request lifetime scope?
    • Note on ASP.NET Core
    • Registering Dependencies as Per-Request
    • How Per-Request Lifetime Works
    • Sharing Dependencies Across Apps Without Requests
    • Testing with Per-Request Dependencies
      • Faking an MVC Request Scope
      • Faking a Web API Request Scope
    • Troubleshooting Per-Request Dependencies
      • No Scope with a Tag Matching ‘AutofacWebRequest’
      • No Per-Request Filter Dependencies in Web API
    • Implementing Custom Per-Request Semantics
  • How do I pick a service implementation by context?
    • Option 1: Redesign Your Interfaces
    • Option 2: Change the Registrations
    • Option 3: Use Keyed Services
    • Option 4: Use Metadata
  • 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?
    • Option 1: Register Using a Lambda
    • Option 2: Use a Provider
  • How do I pass a parameter to a component in the middle of a resolve chain?
    • Why This is a Design Problem
    • Solutions
Next Previous

© Copyright 2014, Autofac Contributors. Revision ff806793.

Built with Sphinx using a theme provided by Read the Docs.
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.