-
我有一个需求,记录日志详情,方法内执行一个方法
var x=CreateOrder();
我需要获取这个x并传入Rougamo,然后Rougamo内部的OnSuccess方法写
WriteLog(x);
我应该如何传入这个x呢?
-
现有的[Attribute代理织入](https://github.com/inversionhourglass/Rougamo#attribute%E4%BB%A3%E7%90%86%E7%BB%87%E5%85%A5)方法需要显式地在程序集级别指定代理,但是如果是编写library用于给其他人使用的、实现了`IMo`的基础类,就还需要其他人也在他的程序集中声明,显得不是很方便。
exam…
-
例如foo(out int buf),重写OnExit方法后,想通过MethodContext的Arguments属性获取out出来的buf值,但是该值一直为空,不知道是不是我哪里没搞对。。。
-
ABP对服务间调用进行了封装,用动态代理实现了RPC调用。
这是它的文档,[动态代理](https://docs.abp.io/en/abp/latest/API/Dynamic-CSharp-API-Clients)
它是基于HTTP封装的,感觉用的非常爽,
远程调用和本地resolve 一个service,用法完全一致,比grpc还要方便(grpc还要想法子传递proto文件)。
而且…
-
我的操作是这样的:我在我项目中的Common Library中引用了Rougamo.Fody,并且新建了一个Logging类,它继承了MoAttribute并重写了其中的4个方法,然后让同一解决方案中的Web项目引用了这个Common Library,随后在Web项目的方法上加上了Logging。但是我发现Logging对这个方法并没有起作用,随后我在Web项目中也引用了Rougamo.Fody,…
-
目前无法支持用attribute的参数来为Flags赋值,有一种场景是整个应用程序使用同一个LoggingAttribute,对于不用的class想实现不用的method level
-
![image](https://user-images.githubusercontent.com/14025507/185920480-2201a5ad-bd13-4ac4-9b22-254161e06715.png)
-
My code like the following:
![image](https://user-images.githubusercontent.com/4969802/219531047-50969fdb-08f2-460d-b71e-e4a003d5495b.png)
At the very beginning, the exception is the **same** wi…
-
![6d56eab99f1e9ad8c591dc39d72123a](https://user-images.githubusercontent.com/2851364/209494794-bfc185e2-c410-4361-9872-02a848d2f575.jpg)
目前有两种解决方法:
1.将VS版本升级到2021或者更高(可能是编译器升级后将引用重定向,问题解决)
2.将Rouga…
-
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Rougamo.ExMoAttribute.TryResolve(Type type, Func`3& func)
at Rougamo.ExMoAttribute.…