public void updateToken_Process(int seqid, TProtocol iprot, TProtocol oprot) { updateToken_args args = new updateToken_args(); args.Read(iprot); iprot.ReadMessageEnd(); updateToken_result result = new updateToken_result(); try { iface_.updateToken(args.PlatformArgs, args.Key, args.Token, args.ExpireSeconds); } catch (org.soldier.platform.svr_platform.comm.ErrorInfo err) { result.Err = err; } oprot.WriteMessageBegin(new TMessage("updateToken", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_updateToken() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } updateToken_result result = new updateToken_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.err) { throw result.Err; } return; }