C# 12 中的 Interceptor 特性
原文中文,约10200字,阅读约需25分钟。
📝
内容提要
C# 12引入Interceptor特性实现简单AOP逻辑,结合source generator动态生成interceptor,但目前只能intercept正在编译的代码,不能完全作为AOP框架。
🏷️