private async Task <(int NotYetExploredCount, int NotYetKnownCount)> RegisterFoundBundlesAsync(SteamPage steamPage, ISet <string> notYetExploredLinks) { var unknownBundleIds = new List <long>(notYetExploredLinks.Count); foreach (var bundleLink in steamPage.BundleLinks) { var bundleLinkIsNotYetExplored = notYetExploredLinks.Contains(bundleLink.Address.AbsoluteUri); if (bundleLinkIsNotYetExplored) { unknownBundleIds.Add(bundleLink.BundleId); } } var notYetKnownCount = await bundleRepository.RegisterUnknownBundlesAsync(unknownBundleIds); return(unknownBundleIds.Count, notYetKnownCount); }
private record FetchResult(SteamPage Page, Exception Exception);