随笔分类 -  AOP

代理、切面编程
摘要:var s = OwnProxy.Register<IAAAA, AAA>(); s.Do("111"); // IAAAA aAAA = new AAA(); /// aAAA.Do(); Console.ReadLine(); } public class OwnProxy : Dispatch 阅读全文
posted @ 2020-04-22 14:06 谁说程序猿很猥琐 阅读(156) 评论(0) 推荐(0)
摘要:主要用于 监听对象的标记 [AttributeUsage(AttributeTargets.Class)] public class AOPAttribute : ContextAttribute, IContributeObjectSink { // IContributeObjectSink : 阅读全文
posted @ 2020-04-17 23:00 谁说程序猿很猥琐 阅读(329) 评论(0) 推荐(0)
摘要:官方解释:AOP(Aspect-Oriented Programming,面向切面的编程),它是可以通过预编译方式和运行期动态代理实现在不修改源代码的情况下给程序动态统一添加功能的一种技术。它是一种新的方法论,它是对传统OOP编程的一种补充。OOP是关注将需求功能划分为不同的并且相对独立,封装良好的 阅读全文
posted @ 2020-04-17 22:53 谁说程序猿很猥琐 阅读(275) 评论(0) 推荐(0)