Example #1
0
 public void scannerGet_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     var args = new scannerGet_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     var result = new scannerGet_result();
     try
     {
         result.Success = this.iface_.scannerGet(args.Id);
     }
     catch (IOError io)
     {
         result.Io = io;
     }
     catch (IllegalArgument ia)
     {
         result.Ia = ia;
     }
     oprot.WriteMessageBegin(new TMessage("scannerGet", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Example #2
0
 public void scannerGet_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     scannerGet_args args = new scannerGet_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     scannerGet_result result = new scannerGet_result();
     try {
       result.success = iface_.scannerGet(args.id);
       result.__isset.success = true;
     } catch (IOError io) {
       result.io = io;
       result.__isset.io = true;
     } catch (IllegalArgument ia) {
       result.ia = ia;
       result.__isset.ia = true;
     } catch (NotFound nf) {
       result.nf = nf;
       result.__isset.nf = true;
     }
     oprot.WriteMessageBegin(new TMessage("scannerGet", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }