博客园
首页
博问
闪存
新随笔
联系
订阅
管理
随笔- 448 文章- 2 评论- 12974
2011年12月1日
通过定义UnityContainer扩展变”Explicit Interception”为”Automatic Interception”
摘要:
Unity是微软P&P部门开发的一个轻量级IoC框架,通过Interception机制可以实现基于三种拦截机制的AOP。不过Unity仅仅提供“显式”拦截机制,以致我们为了注册可被拦截的类型会多写很多代码和配置。本篇文章通过UnityContainer的扩展提供了一种“自动”拦截机制。
阅读全文
posted @ 2011-12-01 23:12 Artech 阅读(2306) 评论(16)
编辑
公告