An open API service indexing awesome lists of open source software.

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库

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

wenli.aop