62,074
社区成员
发帖
与我相关
我的任务
分享
//执行方法前
if (this._interceptorObject.MethodExecuting(this._interceptorObject, call.MethodBase.Name, call.Args))
{
try
{
//执行方法
retMsg = _nextSink.SyncProcessMessage(msg);
}
catch(Exception ex)
{
调试测试,方法报错没有进入到这里
}
//接受返回结果
var returnValue = ((IMethodReturnMessage)retMsg).ReturnValue;
//执行方法后
this._interceptorObject.MethodExecuted(this._interceptorObject, call.MethodBase.Name, call.Args, returnValue);
}