コード例 #1
0
 public List<string> recv_get_all_tables()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception)
     {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     get_all_tables_result result = new get_all_tables_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success)
     {
         return result.Success;
     }
     if (result.__isset.o1)
     {
         throw result.O1;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "get_all_tables failed: unknown result");
 }
コード例 #2
0
 public void get_all_tables_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_all_tables_args args = new get_all_tables_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_all_tables_result result = new get_all_tables_result();
     try
     {
         result.Success = iface_.get_all_tables(args.Db_name);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("get_all_tables", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }