Beispiel #1
0
 /// <exception cref="System.IO.IOException"/>
 public virtual RenewDelegationTokenResponse RenewDelegationToken(RenewDelegationTokenRequest
                                                                  request)
 {
     SecurityProtos.RenewDelegationTokenRequestProto requestProto = ((RenewDelegationTokenRequestPBImpl
                                                                      )request).GetProto();
     try
     {
         return(new RenewDelegationTokenResponsePBImpl(proxy.RenewDelegationToken(null, requestProto
                                                                                  )));
     }
     catch (ServiceException e)
     {
         throw UnwrapAndThrowException(e);
     }
 }
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual SecurityProtos.RenewDelegationTokenResponseProto RenewDelegationToken
            (RpcController controller, SecurityProtos.RenewDelegationTokenRequestProto proto
            )
        {
            RenewDelegationTokenRequestPBImpl request = new RenewDelegationTokenRequestPBImpl
                                                            (proto);

            try
            {
                RenewDelegationTokenResponse response = real.RenewDelegationToken(request);
                return(((RenewDelegationTokenResponsePBImpl)response).GetProto());
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
 public RenewDelegationTokenRequestPBImpl(SecurityProtos.RenewDelegationTokenRequestProto
                                          proto)
 {
     this.proto    = proto;
     this.viaProto = true;
 }