예제 #1
0
        public void startTask_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            startTask_args args = new startTask_args();

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

            iface_.startTask(args.Name);
            oprot.WriteMessageBegin(new TMessage("startTask", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
예제 #2
0
        public void recv_startTask()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            return;
        }
예제 #3
0
 public void startTask_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   startTask_args args = new startTask_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   startTask_result result = new startTask_result();
   iface_.startTask(args.Name);
   oprot.WriteMessageBegin(new TMessage("startTask", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
예제 #4
0
 public void recv_startTask()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   startTask_result result = new startTask_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   return;
 }