示例#1
0
        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));
            }
        }
示例#2
0
 public string Serialize(RpcHead head)
 {
     return(JObject.FromObject(head).ToString(Formatting.None));
 }