Richie

Sometimes at night when I look up at the stars, and see the whole sky just laid out there, don't you think I ain't remembering it all. I still got dreams like anybody else, and ever so often, I am thinking about how things might of been. And then, all of a sudden, I'm forty, fifty, sixty years old, you know?

2010年4月1日 #

IoC - StructureMap 2.6.1

摘要: StructureMap也是一个优秀的IoC框架,他的历史比较久,采用的Apache协议也非常开放,目前开发仍然非常活跃,项目主页上的文档也比较完善基本示例下载StructureMap,基本实例中只需要引用StructureMap.dll文件,并引用命名空间StructureMap下面是我们需要使用IoC的示例代码,我们要创建ContactController,希望通过IoC为ContactCon... 阅读全文

posted @ 2010-04-01 22:37 riccc 阅读(7393) 评论(1) 推荐(6) 编辑

AOP - PostSharp 2.0

摘要: PostSharp是一个非常优秀的AOP框架,使用上非常方便,功能强大,对目标拦截的方法不需要做什么修改,但现在已经商业化运作从PostSharp官方网站下载一个试用版,安装简单示例PostSharp采用Post-Compile的方式实现AOP,即对已经生成的程序集,按照拦截规则进行修改,对需要拦截的方法注入拦截代码。这种方式与基于动态代理的方式相比,没有过多限制,比如不需要目标方法为virtua... 阅读全文

posted @ 2010-04-01 13:16 riccc 阅读(3197) 评论(5) 推荐(0) 编辑

导航