public TResult recv_increment() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } increment_result result = new increment_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.io) { throw result.Io; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "increment failed: unknown result"); }
public void increment_Process(int seqid, TProtocol iprot, TProtocol oprot) { increment_args args = new increment_args(); args.Read(iprot); iprot.ReadMessageEnd(); increment_result result = new increment_result(); try { result.Success = iface_.increment(args.Table, args.Increment); } catch (TIOError io) { result.Io = io; } oprot.WriteMessageBegin(new TMessage("increment", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_increment() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } increment_result result = new increment_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.io) { throw result.Io; } return; }