.NET 中的 Castle AOP 实现
我一直在研究几个 AOP 框架,以便在即将进行的项目中使用其中一个。这两个我一直在看我们的Spring.NET和Castle。我正在努力寻找任何使用 Castle 的 .NET AOP 框架的示例项目或任何好的文档有人可以为我指出使用它的示例项目的方向,最好是在 .NET 4.0 中。
谢谢
I have been looking at a couple of AOP frameworks to use one in a forthcoming project. The two I have been looking at our Spring.NET and Castle. I am struggling to find any sample projects that make use of Castle's .NET AOP framework or any good documentation Can some one point me the direction of a sample project that makes use of it, preferably in .NET 4.0.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Castle 有一个名为 Aspect#(或 AspectSharp)的 AOP 框架,它通过其术语(建议、切入点、连接点等)实现了 AOP,但该项目几年前就夭折了。
它的核心,即真正启用 AOP 的 Castle DynamicProxy,得以幸存并不断发展。
了解 DynamicProxy 的文档和资源(包括使用它的项目和教程)位于此处。
Castle had an AOP framework called Aspect# (or AspectSharp) that implemented AOP with its terminology (advice, pointcuts, join-points, etc), but that project died years ago.
The core of it, what really enabled AOP, Castle DynamicProxy, survived and evolved.
Documentation and resources to learn about DynamicProxy, including projects using it and tutorials, are here.