Esempio n. 1
0
 public List<TRowResult> recv_scannerGetList()
 {
     TMessage msg = this.iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception)
     {
         TApplicationException x = TApplicationException.Read(this.iprot_);
         this.iprot_.ReadMessageEnd();
         throw x;
     }
     var result = new scannerGetList_result();
     result.Read(this.iprot_);
     this.iprot_.ReadMessageEnd();
     if (result.__isset.success)
     {
         return result.Success;
     }
     if (result.__isset.io)
     {
         throw result.Io;
     }
     if (result.__isset.ia)
     {
         throw result.Ia;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult,
                                     "scannerGetList failed: unknown result");
 }
Esempio n. 2
0
 public void scannerGetList_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     var args = new scannerGetList_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     var result = new scannerGetList_result();
     try
     {
         result.Success = this.iface_.scannerGetList(args.Id, args.NbRows);
     }
     catch (IOError io)
     {
         result.Io = io;
     }
     catch (IllegalArgument ia)
     {
         result.Ia = ia;
     }
     oprot.WriteMessageBegin(new TMessage("scannerGetList", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }