public void append_Process(int seqid, TProtocol iprot, TProtocol oprot) { append_args args = new append_args(); args.Read(iprot); iprot.ReadMessageEnd(); append_result result = new append_result(); result.Success = iface_.append(args.Evt); oprot.WriteMessageBegin(new TMessage("append", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public Status recv_append() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } append_result result = new append_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "append failed: unknown result"); }
public ThriftHandle recv_append() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } append_result result = new append_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.ouch) { throw result.Ouch; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "append failed: unknown result"); }
public void append_Process(int seqid, TProtocol iprot, TProtocol oprot) { append_args args = new append_args(); args.Read(iprot); iprot.ReadMessageEnd(); append_result result = new append_result(); try { result.Success = iface_.append(args.Path); } catch (ThriftIOException ouch) { result.Ouch = ouch; } oprot.WriteMessageBegin(new TMessage("append", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void append_Process(int seqid, TProtocol iprot, TProtocol oprot) { append_args args = new append_args(); args.Read(iprot); iprot.ReadMessageEnd(); append_result result = new append_result(); try { result.Success = iface_.append(args.Append); } catch (IOError io) { result.Io = io; } oprot.WriteMessageBegin(new TMessage("append", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }