public override void OnException(RpcActionExecutedContext context) { if (context.Exception is CPlatformCommunicationException) { throw new Exception(context.Exception.Message, context.Exception); } }
public override void OnException(RpcActionExecutedContext context) { //if (context.Exception is CPlatformCommunicationException) // throw new Exception(context.Exception.Message,context.Exception); Console.WriteLine($"{context.Exception.Message},{DateTime.Now}"); }
public override void OnException(RpcActionExecutedContext actionExecutedContext) { base.OnException(actionExecutedContext); Console.WriteLine(actionExecutedContext.InvokeMessage); }
public override void OnException(RpcActionExecutedContext context) { throw new Exception(context.Exception.Message, context.Exception); }