码迷,mamicode.com
首页 >  
搜索关键字:windsor    ( 54个结果
castle windsor学习-------Container Events 容器的事件
所有的事件是实现IKernelEvents 接口,已容器的Kernel属性暴露出来 1. AddedAsChildKernel 当前的容器添加子容器或其他容器时触发 2. RemovedAsChildKernel 和上面相反 ComponentModel events 3. Registration ...
分类:Windows程序   时间:2017-03-12 13:17:40    阅读次数:200
castle windsor学习----ComponentModel construction contributors
public class RequireLoggerProperties : IContributeComponentModelConstruction { public void ProcessModel(IKernel kernel, ComponentModel model) { model.... ...
分类:Windows程序   时间:2017-03-12 12:47:54    阅读次数:209
castle windsor学习----- CastleComponentAttribute 特性注册
[CastleComponent("GenericRepository", typeof(IRepository), Lifestyle = LifestyleType.Transient)] public class Repository : IRepository, IRepository { ... ...
分类:Windows程序   时间:2017-03-12 12:42:20    阅读次数:319
castle windsor学习-----Inline dependencies 依赖
应用程序中的很多组件都会依赖其他的服务组件,很多依赖一些不合法的组件或者容器中没有的组件,例如int类型、string类型、TimeSpan类型 Windsor支持以上的场景,注册API有DependsOn方法。该方法接收一个参数(由Dependency类的静态方法返回值提供) 1. 支持静态依赖 ...
分类:Windows程序   时间:2017-03-12 11:38:12    阅读次数:219
Castle Windsor 学习-----Installer的几种安装方式
翻译 当使用依赖注入容器时,你首先要向容器中注册你的组件,Windsor使用installers(该类型实现IWindsorInstaller接口)来封装和隔离注册的逻辑,可以使用Configuration和FromAssembly来完成工作。 Installers是实现了IWindsorInsta ...
分类:Windows程序   时间:2017-03-11 01:03:54    阅读次数:265
对Castle Windsor的Resolve方法的解析时new对象的探讨
依赖注入框架Castle Windsor从容器里解析一个实例时(也就是调用Resolve方法),是通过调用待解析对象的构造函数new一个对象并返回,那么问题是:它是调用哪个构造函数呢? 无参的构造函数 带参但参数不是靠依赖注入的构造函数 带参且参数是靠依赖注入的构造函数 有多个带参且参数是靠依赖注入 ...
分类:Windows程序   时间:2017-01-03 23:34:46    阅读次数:308
<<ABP框架>> 日志
文档目录 本节内容: 服务端 获取Logger(记录器) Logger的基类 配置 Abp.Castle.Log4Net 包 客户端 获取Logger(记录器) Logger的基类 配置 Abp.Castle.Log4Net 包 服务端 ABP使用Castle Windsor的日志记录工具,它可以和 ...
分类:其他好文   时间:2016-10-23 03:01:39    阅读次数:346
<<ABP框架>> 依赖注入
文档目录 本节内容: 什么时依赖注入 传统方式的问题 解决方案 构造器注入模式 属性注入模式 依赖注入框架 ABP 依赖注入基础 注册依赖 约定注入 辅助接口 自定义/直接 注册 使用IocManager 使用Castle Windsor API 解析 构造器和属性注入 IIocResolver 和 ...
分类:其他好文   时间:2016-10-22 07:11:30    阅读次数:361
Aspect Oriented Programming using Interceptors within Castle Windsor and ABP Framework AOP
http://www.codeproject.com/Articles/1080517/Aspect-Oriented-Programming-using-Interceptors-wit Download sample application (or see the latest on Githu ...
分类:Windows程序   时间:2016-06-20 20:17:47    阅读次数:496
Castle.Windsor IOC/AOP的使用
Castle最早在2003年诞生于Apache Avalon项目,目的是为了创建一个IOC(控制反转)框架。发展到现在已经有4个组件了,分别是ActiveRecord(ORM组件)、Windsor(IOC组件)、DynamicProxy(动态代理组件)、MonoRail(Web MVC组件)。 这里 ...
分类:Windows程序   时间:2016-04-22 12:01:54    阅读次数:1097
54条   上一页 1 2 3 4 5 6 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!