ASP.NET
OWIN
Quick Start
Dependency Injection in Middleware
Controlling Middleware Order
Example
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
Register the Filter
Filter Overrides
Why We Use Non-Standard Filter Interfaces
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
Quick Start
Register Hubs
Set the Dependency Resolver
Managing Dependency Lifetimes
OWIN Integration
Web Forms
Quick Start
Add Modules to Web.config
Implement IContainerProviderAccessor in Global.asax
Tips and Tricks
Structuring Pages and User Controls for DI
Manual Property Injection
Explicit Injection via Attributes
Dependency Injection via Base Page Class
Custom Dependency Injection Modules
Example
RIA / Domain Services
Quick Start
Example
.NET Core
Quick Start
Using a Child Scope as a Root
ASP.NET Core
Quick Start (With ConfigureContainer)
Quick Start (Without ConfigureContainer)
Configuration Method Naming Conventions
Dependency Injection Hooks
Differences From ASP.NET Classic
Controllers as Services
Multitenant Support
Using a Child Scope as a Root
Example
Windows Communication Foundation (WCF)
Clients
Services
Quick Start
Register Service Implementations
Register By Type
Register by Interface
Register by Name
Pick the Right Host Factory
Svc-Less Services
Extensionless Services
WAS Hosting and Non-HTTP Activation
Self-Hosting
Handling InstanceContextMode.Single Services
IIS/WAS Hosted
Self-Hosted
Simulating a Request Lifetime Scope
Using Decorators With Services
Example
Managed Extensibility Framework (MEF)
Consuming MEF Extensions in Autofac
Providing Autofac Components to MEF Extensions
Using Metadata
Known Issues / Gotchas
Common Service Locator
Enterprise Library 5
Using the Configurator
Specifying a Registration Source
Example
NHibernate
Moq
Getting Started
Configuring Mocks
Configuring Specific Dependencies
FakeItEasy
Getting Started
Configuring Fakes
Configuring Specific Dependencies
Options for Fakes
Autofac官方文档(二十)【应用集成】
最新推荐文章于 2019-02-14 13:14:00 发布