public void testCase1_Process(int seqid, TProtocol iprot, TProtocol oprot) { testCase1_args args = new testCase1_args(); args.Read(iprot); iprot.ReadMessageEnd(); testCase1_result result = new testCase1_result(); result.Success = iface_.testCase1(args.Num1, args.Num2, args.Num3); oprot.WriteMessageBegin(new TMessage("testCase1", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public int recv_testCase1() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } testCase1_result result = new testCase1_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testCase1 failed: unknown result"); }
public int recv_testCase1() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } testCase1_result result = new testCase1_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testCase1 failed: unknown result"); }