public virtual SecurityProtos.CancelDelegationTokenRequestProto GetProto() { MergeLocalToProto(); proto = viaProto ? proto : ((SecurityProtos.CancelDelegationTokenRequestProto)builder .Build()); viaProto = true; return(proto); }
private void MergeLocalToProto() { if (viaProto) { MaybeInitBuilder(); } MergeLocalToBuilder(); proto = ((SecurityProtos.CancelDelegationTokenRequestProto)builder.Build()); viaProto = true; }
public virtual void TestCancelDelegationTokenRequestPBImpl() { Token token = GetDelegationToken(); CancelDelegationTokenRequestPBImpl original = new CancelDelegationTokenRequestPBImpl (); original.SetDelegationToken(token); SecurityProtos.CancelDelegationTokenRequestProto protoType = original.GetProto(); CancelDelegationTokenRequestPBImpl copy = new CancelDelegationTokenRequestPBImpl( protoType); NUnit.Framework.Assert.IsNotNull(copy.GetDelegationToken()); //compare source and converted NUnit.Framework.Assert.AreEqual(token, copy.GetDelegationToken()); }
/// <exception cref="System.IO.IOException"/> public virtual CancelDelegationTokenResponse CancelDelegationToken(CancelDelegationTokenRequest request) { SecurityProtos.CancelDelegationTokenRequestProto requestProto = ((CancelDelegationTokenRequestPBImpl )request).GetProto(); try { return(new CancelDelegationTokenResponsePBImpl(proxy.CancelDelegationToken(null, requestProto))); } catch (ServiceException e) { throw UnwrapAndThrowException(e); } }
/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual SecurityProtos.CancelDelegationTokenResponseProto CancelDelegationToken (RpcController controller, SecurityProtos.CancelDelegationTokenRequestProto proto ) { CancelDelegationTokenRequestPBImpl request = new CancelDelegationTokenRequestPBImpl (proto); try { CancelDelegationTokenResponse response = real.CancelDelegationToken(request); return(((CancelDelegationTokenResponsePBImpl)response).GetProto()); } catch (IOException e) { throw new ServiceException(e); } }
public CancelDelegationTokenRequestPBImpl(SecurityProtos.CancelDelegationTokenRequestProto proto) { this.proto = proto; viaProto = true; }