面向方面的编程:您将PostSharp用于什么? [英] Aspect Oriented Programming: What do you use PostSharp for?

查看:123
本文介绍了面向方面的编程:您将PostSharp用于什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一下AOP框架Postsharp的用户,您具体使用什么框架?

此外,我知道它的使用对构建时间有很大的负面影响,但是运行时性能如何呢?会有很大的打击吗?

谢谢

S

解决方案

我使用编译时织法为某些用特定属性修饰的方法添加了额外的功能.

类似于此处.

I would like to ask users of the AOP framework Postsharp, what specifically are you using the framework for?

Also, I know it's use has a big negative impact on build times, but how about runtime performace? Is there much of a hit?

Thanks,

S

解决方案

I use the compile time weaving to add extra functionality to some methods that have been decorated with a certain attribute.

Like here.

这篇关于面向方面的编程:您将PostSharp用于什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆