public void close_Process(int seqid, TProtocol iprot, TProtocol oprot) { close_args args = new close_args(); args.Read(iprot); iprot.ReadMessageEnd(); close_result result = new close_result(); try { iface_.close(); oprot.WriteMessageBegin(new TMessage("close", TMessageType.Reply, seqid)); result.Write(oprot); } catch (TTransportException) { throw; } catch (Exception ex) { Console.Error.WriteLine("Error occurred in processor:"); Console.Error.WriteLine(ex.ToString()); TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error."); oprot.WriteMessageBegin(new TMessage("close", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void close_Process(int seqid, TProtocol iprot, TProtocol oprot) { close_args args = new close_args(); args.Read(iprot); iprot.ReadMessageEnd(); close_result result = new close_result(); iface_.close(); oprot.WriteMessageBegin(new TMessage("close", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void close_Process(int seqid, TProtocol iprot, TProtocol oprot) { close_args args = new close_args(); args.Read(iprot); iprot.ReadMessageEnd(); close_result result = new close_result(); try { result.Success = iface_.close(args.OutThrift); } catch (ThriftIOException ouch) { result.Ouch = ouch; } oprot.WriteMessageBegin(new TMessage("close", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void close_Process(int seqid, TProtocol iprot, TProtocol oprot) { close_args args = new close_args(); args.Read(iprot); iprot.ReadMessageEnd(); close_result result = new close_result(); iface_.close(); oprot.WriteMessageBegin(new TMessage("close", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }