17 references to AddCheck
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DependencyInjection\HealthChecksBuilderAddCheckExtensions.cs (1)
94
return
AddCheck
<T>(builder, name, failureStatus, tags, default);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (4)
CommonHealthChecksExtensions.ApplicationLifecycle.cs (2)
25
.
AddCheck
<ApplicationLifecycleHealthCheck>("ApplicationLifecycle", tags: Throw.IfNull(tags));
36
.
AddCheck
<ApplicationLifecycleHealthCheck>("ApplicationLifecycle", tags: Throw.IfNull(tags));
CommonHealthChecksExtensions.Manual.cs (2)
24
.
AddCheck
<ManualHealthCheckService>("Manual", tags: Throw.IfNull(tags));
36
.
AddCheck
<ManualHealthCheckService>("Manual", tags: Throw.IfNull(tags));
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (12)
DefaultHealthCheckServiceTest.cs (12)
210
b.
AddCheck
<NameCapturingCheck>("A");
211
b.
AddCheck
<NameCapturingCheck>("B");
212
b.
AddCheck
<NameCapturingCheck>("C");
365
b.
AddCheck
<CheckWithServiceDependency>("Test");
389
b.
AddCheck
<CheckWithServiceDependency>("Test");
414
b.
AddCheck
<CheckWithServiceNotMultiThreadDependency>("Test");
415
b.
AddCheck
<CheckWithServiceNotMultiThreadDependency>("Test2");
446
b.
AddCheck
<DisposableDependeciesCheck>("TestDisposableDepenencies");
469
b.
AddCheck
<CheckWithServiceDependency>("Test");
598
b.
AddCheck
<FailCapturingCheck>("degraded", HealthStatus.Degraded);
599
b.
AddCheck
<FailCapturingCheck>("healthy", HealthStatus.Healthy);
600
b.
AddCheck
<FailCapturingCheck>("unhealthy", HealthStatus.Unhealthy);