public void closeScanner_Process(int seqid, TProtocol iprot, TProtocol oprot) { closeScanner_args args = new closeScanner_args(); args.Read(iprot); iprot.ReadMessageEnd(); closeScanner_result result = new closeScanner_result(); try { iface_.closeScanner(args.ScannerId); } catch (TIOError io) { result.Io = io; } catch (TIllegalArgument ia) { result.Ia = ia; } oprot.WriteMessageBegin(new TMessage("closeScanner", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_closeScanner() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } closeScanner_result result = new closeScanner_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.io) { throw result.Io; } if (result.__isset.ia) { throw result.Ia; } return; }