Autofac官方文档(二十)【应用集成】
来源:互联网 发布:java中的集合类 编辑:程序博客网 时间:2024/05/22 01:50
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
阅读全文
0 0
- Autofac官方文档(二十)【应用集成】
- Autofac官方文档(二十一)【应用集成之OWIN】
- Autofac官方文档(二十二)【应用集成之MVC】
- Autofac官方文档(二十三)【应用集成之Web API】
- Autofac官方文档(二十四)【应用集成之Web Forms】
- Autofac官方文档(二)【新版本】
- Autofac官方文档(十)【控制作用域和生命周期】
- Autofac官方文档(一)【开始】
- Autofac官方文档(十四)【销毁】
- Autofac官方文档(十七)【配置】
- Autofac官方文档(十九)【模块】
- ABP官方文档(二十)【领域事件】
- Autofac官方文档(七)【解析服务】
- Autofac官方文档(十一)【使用生命周期范围】
- Autofac官方文档(十二)【实例范围】
- Autofac官方文档(十三)【捕获依赖】
- Autofac官方文档(十五)【生命周期事件】
- Autofac官方文档(十八)【JSON/XML 配置】
- 二叉树
- 联想服务器水冷技术
- 深度优先和广度优先总结和实践2
- 随手记录
- 文章标题
- Autofac官方文档(二十)【应用集成】
- [百度搜索框Bootstrap模仿]
- Linux 下常用Vim命令
- 简述你理解的java中的接口和抽象类的区别(五点)
- HYSBZ 4690 Never Wait for Weights(变种并查集)
- Linux进程探讨系列之一
- 12月3日训练笔记
- 一文掌握阿里云“云通信”产品
- Flask学习(二):Flash案例代码修改