public void RefreshAccessToken()
 {
     if (_disposed)
     {
         throw new ObjectDisposedException("SafeguardConnection");
     }
     _authenticationMechanism.RefreshAccessToken();
     Log.Debug("Successfully obtained a new access token");
 }
Example #2
0
 private static SafeguardConnection GetConnection(IAuthenticationMechanism authenticationMechanism)
 {
     authenticationMechanism.RefreshAccessToken();
     return(new SafeguardConnection(authenticationMechanism));
 }