https://github.com/yswenli/wenli.aop
wenli.aop is is an lightweight aop lib for C# wenli.aop是C #轻量级AOP库
https://github.com/yswenli/wenli.aop
aop csharp intercept wenli
Last synced: 9 months ago
JSON representation
wenli.aop is is an lightweight aop lib for C# wenli.aop是C #轻量级AOP库
- Host: GitHub
- URL: https://github.com/yswenli/wenli.aop
- Owner: yswenli
- Created: 2017-07-04T10:07:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T05:00:35.000Z (almost 9 years ago)
- Last Synced: 2025-07-31T13:31:25.122Z (11 months ago)
- Topics: aop, csharp, intercept, wenli
- Language: C#
- Homepage:
- Size: 159 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wenli.AOP
weni.aop内部封装了三种方法拦截机制:DynamicProxy、Intercepting、Simple;
1.DynamicProxy使用的是dotnet emit 动态代理模式,直接对目标类的接口进行生成代理类,通过代理类的方法来实现拦截
2.Intercepting使用的是dotnet中的远程消息、边界对象机制来实现拦截
3.Simple使用的是dotnet中的RealProxy简单封装实现拦截
其中DynamicProxy需要有目标类的接口,Intercepting和Simple需要目标类继承ContextBoundObject、MarshalByRefObject
使用方式参照:Wenli.AOP.Console
