private MxHostTestDetails MarkTestToSkip(MxHostTestDetails host) { using (_log.BeginScope(new Dictionary <string, object> { [TlsHostLogPropertyName] = host.Test.Id })) { host.SkipTesting = _recentlyProcessedLedger.Contains(host.NormalizedHostname); _log.LogInformation($"Host {host.Test.Id} will be {(host.SkipTesting ? "skipped" : "processed")}"); return(host); } }
private IEnumerable <MxHostTestDetails> FilterHosts(MxHostTestDetails host) { var hostname = host.Test.Id; using (_log.BeginScope(new Dictionary <string, object> { [TlsHostLogPropertyName] = hostname })) { if (_processingFilter.Reserve(hostname)) { yield return(host); } } }