Beispiel #1
0
 public void getAllRepos_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getAllRepos_args args = new getAllRepos_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getAllRepos_result result = new getAllRepos_result();
   result.Success = iface_.getAllRepos(args.Username);
   oprot.WriteMessageBegin(new TMessage("getAllRepos", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Beispiel #2
0
 public List<string> recv_getAllRepos()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getAllRepos_result result = new getAllRepos_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getAllRepos failed: unknown result");
 }