在这里列表了我想到的在你的应用程序中加入AOP支持的所有方法。这里最主要的焦点是拦截,因为一旦有了拦截其它的事情都是细节。
|
Approach 方法 |
Advantages 优点 |
Disadvantages 缺点 |
|
Remoting Proxies 远程代理 |
Easy to implement, because of the .Net framework support 容易实现,因为有.NET 框架的支持。 |
Somewhat heavy weight 微显重量级 仅在接口或 MarshalByRefObjects 上使用 |
|
Deriving from ContextBoundObject 从 ContextBoundObject 派生 |
Easiest to implement 很容易实现 原生支持调用拦截 |
Very costly in terms of performance 非常昂贵的性能代价 |
|
Compile-time subclassing 编译时子类化 |
Easiest to understand 很容易理解 |
Interfaces or virtual methods only 仅用于接口或虚方法 |
|
Runtime subclassing 运行时子类化 |
Easiest to understand 很容易理解 非常灵活 |
Complex implementation (but already exists) 复杂的实现(已经实现) 仅用于接口或虚方法 |
|
Hooking into the profiler API 分析 API 钩子 |
Extremely powerful 极端强大 |
Performance? 性能未知 复杂实现(COM API,需要单独运行等) |
|
Compile time IL-weaving 编译时 IL 织入 |
Very powerful 非常强大 良好的性能 |
Very hard to implement 实现非常困难 |
|
Runtime IL-weaving 运行时 IL 织入 |
Very powerful 非常强大 良好的性能 |
Very hard to implement 实现非常困难 |
罚罪1+2在哪看?罚罪1+2全80集高清未删减在线观看入口地址
韩剧再婚皇后1080p迅雷磁力链接分享-韩剧再婚皇后高清完整版迅雷云盘下载1080P(4k)资源
如果我不曾见过太阳高清无删减夸克在线看-如果我不曾见过太阳蓝光高清1080p无删减资源夸克免费转存
如果我不曾见过太阳阿里云盘全集高清1080P资源链接-如果我不曾见过太阳免费阿里云盘资源下载4K高清无删减版链接
罚罪1+2全80集阿里云盘全集资源链接-罚罪1+2全集高清1080P/4K阿里云盘资源下载无删减
邵氏精品禁品未删减资源在线看-必看的50部邵氏电影无删减观看入口