public string recv_get_delegation_token_with_signature() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } get_delegation_token_with_signature_result result = new get_delegation_token_with_signature_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, "get_delegation_token_with_signature failed: unknown result"); }
public void get_delegation_token_with_signature_Process(int seqid, TProtocol iprot, TProtocol oprot) { get_delegation_token_with_signature_args args = new get_delegation_token_with_signature_args(); args.Read(iprot); iprot.ReadMessageEnd(); get_delegation_token_with_signature_result result = new get_delegation_token_with_signature_result(); try { result.Success = iface_.get_delegation_token_with_signature(args.Renewer_kerberos_principal_name, args.Token_signature); } catch (MetaException o1) { result.O1 = o1; } oprot.WriteMessageBegin(new TMessage("get_delegation_token_with_signature", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }