摘要: PostSharp 使用IL静态注入实现AOP,下面例子对登录操作进行静态注入,使用Web application ,记录每次登录PostSharp的使用方法很简单,将自定义的属性LoggerTrace直接加在需要注册的方法上就可以(事件是特殊的方法)using System;using Syste... 阅读全文
posted @ 2014-07-10 16:36 shzy2012 阅读(1412) 评论(0) 推荐(0) 编辑