public void checkToken_Process(int seqid, TProtocol iprot, TProtocol oprot) { checkToken_args args = new checkToken_args(); args.Read(iprot); iprot.ReadMessageEnd(); checkToken_result result = new checkToken_result(); try { result.Success = iface_.checkToken(args.PlatformArgs, args.Token); } catch (org.soldier.platform.svr_platform.comm.ErrorInfo err) { result.Err = err; } oprot.WriteMessageBegin(new TMessage("checkToken", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public string recv_checkToken() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } checkToken_result result = new checkToken_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.err) { throw result.Err; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "checkToken failed: unknown result"); }