Exemplo n.º 1
0
 public void recv_scannerClose()
 {
     TMessage msg = this.iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception)
     {
         TApplicationException x = TApplicationException.Read(this.iprot_);
         this.iprot_.ReadMessageEnd();
         throw x;
     }
     var result = new scannerClose_result();
     result.Read(this.iprot_);
     this.iprot_.ReadMessageEnd();
     if (result.__isset.io)
     {
         throw result.Io;
     }
     if (result.__isset.ia)
     {
         throw result.Ia;
     }
     return;
 }
Exemplo n.º 2
0
 public void scannerClose_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     var args = new scannerClose_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     var result = new scannerClose_result();
     try
     {
         this.iface_.scannerClose(args.Id);
     }
     catch (IOError io)
     {
         result.Io = io;
     }
     catch (IllegalArgument ia)
     {
         result.Ia = ia;
     }
     oprot.WriteMessageBegin(new TMessage("scannerClose", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }