public long recv_renew_delegation_token() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } renew_delegation_token_result result = new renew_delegation_token_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.o1) { throw result.O1; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "renew_delegation_token failed: unknown result"); }
public void renew_delegation_token_Process(int seqid, TProtocol iprot, TProtocol oprot) { renew_delegation_token_args args = new renew_delegation_token_args(); args.Read(iprot); iprot.ReadMessageEnd(); renew_delegation_token_result result = new renew_delegation_token_result(); try { result.Success = iface_.renew_delegation_token(args.Token_str_form); } catch (MetaException o1) { result.O1 = o1; } oprot.WriteMessageBegin(new TMessage("renew_delegation_token", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }