public static async Task RetryFailedRequestsAsync() { await GetCachedResponses().ForEachThrottledAsync(async item => { var c = TryReadCacheFile(item.Value, true); if (c != null && c.ExceptionType != null) { DeleteWebCache(item.Key); try { var dummy = await item.Key.GetHtmlNodeAsync(); } catch (Exception ex) { Sanity.ReportError(ex, ErrorCategory.CacheRetry); } } } , Configuration_RetryFailedRequestsConcurrency); }