public void peek_Process(int seqid, TProtocol iprot, TProtocol oprot) { peek_args args = new peek_args(); args.Read(iprot); iprot.ReadMessageEnd(); peek_result result = new peek_result(); result.Success = iface_.peek(args.Topic); oprot.WriteMessageBegin(new TMessage("peek", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public QueueResponse recv_peek() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } peek_result result = new peek_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "peek failed: unknown result"); }
public QueueResponse recv_peek() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } peek_result result = new peek_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "peek failed: unknown result"); }