public async Task InstalledAppTokenRefresh( [TimerTrigger("0 */29 * * * *")] TimerInfo timer) { try { if (timer.IsPastDue) { _logger.LogDebug("Timer is running late!"); } await _installedAppTokenManager.RefreshAllTokensAsync().ConfigureAwait(false); } catch (Exception ex) { _logger.LogError(ex, "Exception calling installedAppTokenManager.RefreshAllTokensAsync"); throw; } }
public async Task IAMRefreshAllITokensAsync_ShouldNotError() { await installedAppTokenManager.RefreshAllTokensAsync(); }