Example #1
0
        public void cancelTask_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            cancelTask_args args = new cancelTask_args();

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

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

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            return;
        }
Example #3
0
 public void cancelTask_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   cancelTask_args args = new cancelTask_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   cancelTask_result result = new cancelTask_result();
   iface_.cancelTask(args.Name);
   oprot.WriteMessageBegin(new TMessage("cancelTask", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Example #4
0
 public void recv_cancelTask()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   cancelTask_result result = new cancelTask_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   return;
 }