예제 #1
0
 public bool recv_IsValuePolled()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   IsValuePolled_result result = new IsValuePolled_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "IsValuePolled failed: unknown result");
 }
예제 #2
0
 public void IsValuePolled_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   IsValuePolled_args args = new IsValuePolled_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   IsValuePolled_result result = new IsValuePolled_result();
   result.Success = iface_.IsValuePolled(args._id);
   oprot.WriteMessageBegin(new TMessage("IsValuePolled", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }