public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot) { ping_args args = new ping_args(); args.Read(iprot); iprot.ReadMessageEnd(); ping_result result = new ping_result(); try { iface_.ping(); oprot.WriteMessageBegin(new TMessage("ping", 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("ping", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot) { ping_args args = new ping_args(); args.Read(iprot); iprot.ReadMessageEnd(); ping_result result = new ping_result(); iface_.ping(); oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot) { ping_args args = new ping_args(); args.Read(iprot); iprot.ReadMessageEnd(); ping_result result = new ping_result(); try { result.Success = iface_.ping(args.AuthString); } catch (org.phybros.thrift.EAuthException aex) { result.Aex = aex; } oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }