RpcError IRpcService.HandleException(RpcHead head, Exception ex) { var service = this.instance as IRpcService; if (service != null) { return(service.HandleException(head, ex)); } else { return(server.ExceptionHandler.HandleException(head, ex)); } }
public string Serialize(RpcHead head) { return(JObject.FromObject(head).ToString(Formatting.None)); }