16 references to AddCheck
Aspire.Hosting.Tests (5)
Health\ResourceHealthCheckServiceTests.cs (5)
53builder.Services.AddHealthChecks().AddCheck("healthcheck_a", () => HealthCheckResult.Healthy()); 91builder.Services.AddHealthChecks().AddCheck("resource_check", () => 250builder.Services.AddHealthChecks().AddCheck("parent_test", () => 309builder.Services.AddHealthChecks().AddCheck("parent_test", () => 361builder.Services.AddHealthChecks().AddCheck("parent_test", () => HealthCheckResult.Healthy());
HealthChecksSandbox.AppHost (2)
Program.cs (2)
32.AddCheck( 36.AddCheck($"{name}_resource_healthy_after_first_run_check", () =>
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (6)
HealthCheckMiddlewareTests.cs (6)
171.AddCheck("Foo", () => HealthCheckResult.Healthy("A-ok!")) 172.AddCheck("Bar", () => HealthCheckResult.Healthy("A-ok!")) 173.AddCheck("Baz", () => HealthCheckResult.Healthy("A-ok!")); 204.AddCheck("Foo", () => HealthCheckResult.Healthy("A-ok!")) 205.AddCheck("Bar", () => HealthCheckResult.Degraded("Not so great.")) 206.AddCheck("Baz", () => HealthCheckResult.Healthy("A-ok!"));
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DependencyInjection\HealthChecksBuilderDelegateExtensions.cs (1)
34return AddCheck(builder, name, check, tags, default);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
HealthCheckPublisherHostedServiceTest.cs (2)
749builder.AddCheck("one", () => { return HealthCheckResult.Healthy(); }) 750.AddCheck("two", () => { return HealthCheckResult.Healthy(); });