Suggestions for open source aspect-oriented library for c# [closed]

こ雲淡風輕ζ 提交于 2019-12-04 17:06:24

Spring.NET

I am using Castle Windsor and Dynamic Proxy, which together provide a simple way to apply your standard AOP method interception through external XML configuration.

If you have more advanced AOP needs, Aspect# might be useful (also relies on Dynamic Proxy) - but I have found that Windsor fulfills my needs perfectly.

Please note that Dynamic Proxy provides only runtime AOP. There are solutions out there that can mix in your aspects at compile time (although I can't recall the name of any of them).

DynamicProxy from CastleProject is probably the most lightweight and powerful solution regarding dynamic interception.

I would suggest Spring.NET as well, but only because that's the only one I have experience with. Spring.NET offers so much more (IoC, transaction management, nice validation framework) but you can use just what you need from it.

Spring.NET is great in general, and so is its AOP support.

No idea why people are saying to avoid it. Infact it is one of the most stable and reliable frameworks in the .NET world.

Dev progress is slow, but that is fine because it is already feature rich and stable.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!