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