Exemplo n.º 1
0
 public bool recv_DisablePoll()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   DisablePoll_result result = new DisablePoll_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "DisablePoll failed: unknown result");
 }
Exemplo n.º 2
0
 public void DisablePoll_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   DisablePoll_args args = new DisablePoll_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   DisablePoll_result result = new DisablePoll_result();
   result.Success = iface_.DisablePoll(args._valueId);
   oprot.WriteMessageBegin(new TMessage("DisablePoll", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }