ASP.NET — Autofac 7.0.0 documentation (original) (raw)
Autofac offers integration into several ASP.NET application types. The integration libraries provide features like easy connection of your Autofac container to the application lifecycle as well as support for things like per-request component lifetime.
These pages explain ASP.NET classic integration. If you are using ASP.NET Core, see the ASP.NET Core integration page.
- OWIN
- MVC
- Quick Start
- Register Controllers
- Set the Dependency Resolver
- Register Model Binders
- Register Web Abstractions
- Enable Property Injection for View Pages
- Enable Property Injection for Action Filters
- Enable Injection of Action Parameters
- OWIN Integration
- Using “Plugin” Assemblies
- Using the Current Autofac DependencyResolver
- Glimpse Integration
- Unit Testing
- Example
- Web API
- Quick Start
- Get the HttpConfiguration
- Register Controllers
- Set the Dependency Resolver
- Provide Filters via Dependency Injection
* Register the Filter Provider
* Implement the Filter Interface
* Standard Action Filter Interface
* Continuation Action Filter Interface
* Register the Filter
* Filter Overrides
* Setting the Response in an Autofac Action Filter
* Standard Web API Filter Attributes are Singletons
* Instance Filters Don’t Get Injected - Provide Model Binders via Dependency Injection
* Register the Binder Provider
* Register Model Binders
* Mark Parameters With ModelBinderAttribute - Per-Controller-Type Services
* Add the Controller Configuration Attribute
* Supported Services
* Service Registration
* Clearing Existing Services
* Per-Controller-Type Service Limitations - Batching
- OWIN Integration
- Unit Testing
- Example
- SignalR
- Web Forms