public void sendSync_0_Process(int seqid, TProtocol iprot, TProtocol oprot) { sendSync_0_args args = new sendSync_0_args(); args.Read(iprot); iprot.ReadMessageEnd(); sendSync_0_result result = new sendSync_0_result(); result.Success = iface_.sendSync_0(args.Request); oprot.WriteMessageBegin(new TMessage("sendSync_0", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public SendResponse_0 recv_sendSync_0() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } sendSync_0_result result = new sendSync_0_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendSync_0 failed: unknown result"); }