39 references to AddAsyncCheck
Aspire.Hosting.Azure.Tests (3)
AzureCosmosDBEmulatorFunctionalTests.cs (1)
30builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
AzureEventHubsExtensionsTests.cs (1)
30builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
AzureStorageEmulatorFunctionalTests.cs (1)
26builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Elasticsearch.Tests (1)
ElasticsearchFunctionalTests.cs (1)
214builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Garnet.Tests (1)
GarnetFunctionalTests.cs (1)
27builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Kafka.Tests (1)
KafkaFunctionalTests.cs (1)
28builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.MongoDB.Tests (1)
MongoDbFunctionalTests.cs (1)
39builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.MySql.Tests (1)
MySqlFunctionalTests.cs (1)
35builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
330builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Oracle.Tests (1)
OracleFunctionalTests.cs (1)
358builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
38builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
230builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.RabbitMQ.Tests (1)
RabbitMQFunctionalTests.cs (1)
29builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
33builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
29builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Tests (2)
Health\ResourceHealthCheckServiceTests.cs (1)
139builder.Services.AddHealthChecks().AddAsyncCheck("resource_check", async () =>
HealthCheckTests.cs (1)
69builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Valkey.Tests (1)
ValkeyFunctionalTests.cs (1)
204builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (15)
HealthCheckMiddlewareTests.cs (15)
237.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 238.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("Pretty bad."))) 239.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 270.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 271.AddAsyncCheck("Bar", () => throw null) 272.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 316.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 317.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("Pretty bad."))) 318.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 353.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 354.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("Pretty bad."))) 355.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 490.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 492.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("A-ok!"))) 493.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!")));
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DependencyInjection\HealthChecksBuilderDelegateExtensions.cs (1)
120return AddAsyncCheck(builder, name, check, tags, default);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (5)
DefaultHealthCheckServiceTest.cs (3)
496b.AddAsyncCheck("test1", 503b.AddAsyncCheck("test2", 565b.AddAsyncCheck("test", async () =>
DependencyInjection\HealthChecksBuilderTest.cs (2)
208.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy())); 211.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Healthy()));