Esempio n. 1
0
 public void availableUnits_func_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   availableUnits_func_args args = new availableUnits_func_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   availableUnits_func_result result = new availableUnits_func_result();
   result.Success = iface_.availableUnits_func();
   oprot.WriteMessageBegin(new TMessage("availableUnits_func", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Esempio n. 2
0
 public List<string> recv_availableUnits_func()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   availableUnits_func_result result = new availableUnits_func_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "availableUnits_func failed: unknown result");
 }