摘要: [转]多个IoC容器适配器设计及性能测试和容器选择 1. 采用的IoC容器和版本 Autofac.2.6.3.862 Castle.Windsor.3.1.0 Spring.Core.2.0.0 2. 基础类库:服务类库和组件类库及相关的辅助类库 辅助类库:Demo.Common.dll 服务接口类 阅读全文
posted @ 2017-08-10 17:01 Rocken.li 阅读(1120) 评论(0) 推荐(0)
摘要: 【转】Castle Windsor之组件注册 注册方式较多,大体有这么几种,学习得比较粗浅,先记录: 1、逐个注册组件 即对每个接口通过代码指定其实现类,代码: container.Register( Component.For<IMyService>() //接口 .ImplementedBy<M 阅读全文
posted @ 2017-08-10 12:47 Rocken.li 阅读(2185) 评论(0) 推荐(1)
摘要: 一、【转】ASP.NET MVC中使用Castle Windsor 二、【转】Castle Windsor之组件注册 平常用Inject比较多,今天接触到了Castle Windsor。本篇就来体验其在ASP.NET MVC中的应用过程。 Visual Studio 2012创建一个ASP.NET 阅读全文
posted @ 2017-08-10 12:42 Rocken.li 阅读(741) 评论(0) 推荐(0)
摘要: [转]Castle.Windsor依赖注入的高级应用_Castle.Windsor.3.1.0 1. 使用代码方式进行组件注册【依赖服务类】 using System; using System.Collections.Generic; using System.Linq; using System 阅读全文
posted @ 2017-08-10 09:05 Rocken.li 阅读(2283) 评论(0) 推荐(0)
摘要: 使用Spring.NET的IoC容器 0. 辅助类库 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SpringDemo.Pub { public sta 阅读全文
posted @ 2017-08-10 09:03 Rocken.li 阅读(360) 评论(0) 推荐(0)