コード例 #1
0
            public void invokeTest_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                invokeTest_args args = new invokeTest_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                invokeTest_result result = new invokeTest_result();

                result.Success = iface_.invokeTest();
                oprot.WriteMessageBegin(new TMessage("invokeTest", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
コード例 #2
0
            public string recv_invokeTest()
            {
                TMessage msg = iprot_.ReadMessageBegin();

                if (msg.Type == TMessageType.Exception)
                {
                    TApplicationException x = TApplicationException.Read(iprot_);
                    iprot_.ReadMessageEnd();
                    throw x;
                }
                invokeTest_result result = new invokeTest_result();

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "invokeTest failed: unknown result");
            }
コード例 #3
0
 public string recv_invokeTest()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   invokeTest_result result = new invokeTest_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "invokeTest failed: unknown result");
 }
コード例 #4
0
 public void invokeTest_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   invokeTest_args args = new invokeTest_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   invokeTest_result result = new invokeTest_result();
   result.Success = iface_.invokeTest();
   oprot.WriteMessageBegin(new TMessage("invokeTest", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }