public void GeteBayOrder_Process(int seqid, TProtocol iprot, TProtocol oprot) { GeteBayOrder_args args = new GeteBayOrder_args(); args.Read(iprot); iprot.ReadMessageEnd(); GeteBayOrder_result result = new GeteBayOrder_result(); try { result.Success = iface_.GeteBayOrder(args.Request); } catch (CBT.GEP.Thrift.Common.ThriftException te) { result.Te = te; } oprot.WriteMessageBegin(new TMessage("GeteBayOrder", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public GeteBayOrderResponse recv_GeteBayOrder() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GeteBayOrder_result result = new GeteBayOrder_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.te) { throw result.Te; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GeteBayOrder failed: unknown result"); }