8 writes to FilterChecks
Microsoft.Extensions.Diagnostics.Probes (6)
KubernetesProbesExtensions.cs (6)
67
options.
FilterChecks
= (check) => check.Tags.Contains(ProbeTags.Liveness);
71
options.
FilterChecks
= (check) => check.Tags.Contains(ProbeTags.Liveness) && originalPredicate(check);
84
options.
FilterChecks
= (check) => check.Tags.Contains(ProbeTags.Startup);
88
options.
FilterChecks
= (check) => check.Tags.Contains(ProbeTags.Startup) && originalPredicate(check);
101
options.
FilterChecks
= (check) => check.Tags.Contains(ProbeTags.Readiness);
105
options.
FilterChecks
= (check) => check.Tags.Contains(ProbeTags.Readiness) && originalPredicate(check);
Microsoft.Extensions.Diagnostics.Probes.Tests (2)
TcpEndpointProbesExtensionsTests.cs (2)
50
o.
FilterChecks
= _ => false;
87
o.
FilterChecks
= _ => false;
13 references to FilterChecks
Microsoft.Extensions.Diagnostics.Probes (4)
KubernetesProbesExtensions.cs (3)
64
var originalPredicate = options.
FilterChecks
;
81
var originalPredicate = options.
FilterChecks
;
98
var originalPredicate = options.
FilterChecks
;
TcpEndpointProbesService.cs (1)
43
var report = await _healthCheckService.CheckHealthAsync(_options.
FilterChecks
, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.Probes.Tests (9)
KubernetesProbesExtensionsTests.cs (9)
49
Assert.True(livenessConfig.
FilterChecks
!(livenessRegistration));
50
Assert.False(livenessConfig.
FilterChecks
(startupRegistration));
51
Assert.False(livenessConfig.
FilterChecks
(readinessRegistration));
55
Assert.False(startupConfig.
FilterChecks
!(livenessRegistration));
56
Assert.True(startupConfig.
FilterChecks
(startupRegistration));
57
Assert.False(startupConfig.
FilterChecks
(readinessRegistration));
61
Assert.False(readinessConfig.
FilterChecks
!(livenessRegistration));
62
Assert.False(readinessConfig.
FilterChecks
(startupRegistration));
63
Assert.True(readinessConfig.
FilterChecks
(readinessRegistration));