17 references to AddCheck
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DependencyInjection\HealthChecksBuilderAddCheckExtensions.cs (1)
94return 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)
210b.AddCheck<NameCapturingCheck>("A"); 211b.AddCheck<NameCapturingCheck>("B"); 212b.AddCheck<NameCapturingCheck>("C"); 365b.AddCheck<CheckWithServiceDependency>("Test"); 389b.AddCheck<CheckWithServiceDependency>("Test"); 414b.AddCheck<CheckWithServiceNotMultiThreadDependency>("Test"); 415b.AddCheck<CheckWithServiceNotMultiThreadDependency>("Test2"); 446b.AddCheck<DisposableDependeciesCheck>("TestDisposableDepenencies"); 469b.AddCheck<CheckWithServiceDependency>("Test"); 598b.AddCheck<FailCapturingCheck>("degraded", HealthStatus.Degraded); 599b.AddCheck<FailCapturingCheck>("healthy", HealthStatus.Healthy); 600b.AddCheck<FailCapturingCheck>("unhealthy", HealthStatus.Unhealthy);