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