C# Asp.net中的AOP框架 Microsoft.CCI, Mono.Cecil, Typemock Open-AOP API, PostSharp -摘自网络 (可以利用反射 Attribute 进行面向切面编程 可以用在记录整个方法的Log方面)
2015-03-18 10:23
1081 查看
Both Microsoft.CCI and Mono.Cecil are low-level, and don't validate produced assemblies. It takes lots of time to find the reason of problem, if there is any error in generated code or assembly structure.
I'd recommend using PostSharp if it's features are enough for you tasks.
Otherwise... Mono.Cecil has better, more understandable and easy in use object model. However, I had an ugly bug when used it in my program (reference to the wrong method was saved in the assembly; I think there was some bug with metadata tokens handling)
Microsoft.CCI has an ugly, utterly over-designed object model in the same time lacking many simple features; however, it's more mature than Mono.Cecil. Finally, I abandoned Mono.Cecil and used Microsoft.CCI for my program.
Typemock Open-AOP API
http://cthru.codeplex.com/wikipage?title=Typemock%20Open-AOP%20API
I'd recommend using PostSharp if it's features are enough for you tasks.
Otherwise... Mono.Cecil has better, more understandable and easy in use object model. However, I had an ugly bug when used it in my program (reference to the wrong method was saved in the assembly; I think there was some bug with metadata tokens handling)
Microsoft.CCI has an ugly, utterly over-designed object model in the same time lacking many simple features; however, it's more mature than Mono.Cecil. Finally, I abandoned Mono.Cecil and used Microsoft.CCI for my program.
Typemock Open-AOP API
http://cthru.codeplex.com/wikipage?title=Typemock%20Open-AOP%20API
相关文章推荐
- 使用Mono Cecil 动态获取运行时数据 (Atribute形式 进行注入 用于写Log) [此文报考 xxx is declared in another module and needs to be imported的解决方法]-摘自网络
- 建立一个方法的attribute,可以放在任意方法上,可以自动记录方法出错时的信息,就不用写try 。。cacth. 【注意】 不是在asp.net MVC下,是在普通三层结构下写的的特性。
- C#实现多级子目录Zip压缩解压实例 NET4.6下的UTC时间转换 [译]ASP.NET Core Web API 中使用Oracle数据库和Dapper看这篇就够了 asp.Net Core免费开源分布式异常日志收集框架Exceptionless安装配置以及简单使用图文教程 asp.net core异步进行新增操作并且需要判断某些字段是否重复的三种解决方案 .NET Core开发日志
- 利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法
- Asp.Net Ajax 学习笔记13 Microsoft AJAX Library中异步通信层(摘自网络)
- 利用Nginx+Mono+Fastcgi代替IIS对Asp.Net进行反向代理
- [网络收集]c#和asp.net方面的面试题
- asp.net C#进行网页间多值传递的方法
- 利用JQuery的$.ajax()可以很方便的调用asp.net的后台方法。
- 利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法(二)
- 利用Nginx+Mono+Fastcgi代替IIS对Asp.Net进行反向代理
- asp.net中用来进行Post和Get方式提交表单的方法
- ASP.NET中记录Log到txt文件的方法
- [摘]ASP.NET Atlas是Microsoft开发的下一代网络应用程序框架.....
- ASP.Net 利用反射调用页面方法
- 利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法(二)
- 利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法(一)
- 利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法
- ASP.NET(C#)利用QQ的IP数据库QQWry.Dat进行精确IP查询
- ASP.NET 3.5核心编程学习笔记(58):利用页面方法来进行远程调用