103 references to Healthy
Aspire.Azure.Messaging.WebPubSub (1)
AspireWebPubSubExtensions.cs (1)
144return HealthCheckResult.Healthy();
Aspire.Azure.Search.Documents (1)
AzureSearchIndexHealthCheck.cs (1)
27return HealthCheckResult.Healthy();
Aspire.Elastic.Clients.Elasticsearch (1)
ElasticsearchHealthCheck.cs (1)
30? HealthCheckResult.Healthy()
Aspire.Hosting.Azure.Tests (3)
AzureCosmosDBEmulatorFunctionalTests.cs (1)
52healthCheckTcs.SetResult(HealthCheckResult.Healthy());
AzureEventHubsExtensionsTests.cs (1)
53healthCheckTcs.SetResult(HealthCheckResult.Healthy());
AzureStorageEmulatorFunctionalTests.cs (1)
54healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Elasticsearch (1)
src\Components\Aspire.Elastic.Clients.Elasticsearch\ElasticsearchHealthCheck.cs (1)
30? HealthCheckResult.Healthy()
Aspire.Hosting.Elasticsearch.Tests (1)
ElasticsearchFunctionalTests.cs (1)
235healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Garnet.Tests (1)
GarnetFunctionalTests.cs (1)
48healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Kafka.Tests (1)
KafkaFunctionalTests.cs (1)
49healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.MongoDB.Tests (1)
MongoDbFunctionalTests.cs (1)
60healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.MySql.Tests (1)
MySqlFunctionalTests.cs (1)
56healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Nats (2)
src\Components\Aspire.NATS.Net\NatsHealthCheck.cs (2)
15NatsConnectionState.Open => HealthCheckResult.Healthy(), 29return HealthCheckResult.Healthy();
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
351healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Oracle.Tests (1)
OracleFunctionalTests.cs (1)
379healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
62healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Qdrant (1)
src\Components\Aspire.Qdrant.Client\QdrantHealthCheck.cs (1)
25? HealthCheckResult.Healthy()
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
251healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.RabbitMQ.Tests (1)
RabbitMQFunctionalTests.cs (1)
50healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
54healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
50healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Tests (6)
Health\ResourceHealthCheckServiceTests.cs (5)
53builder.Services.AddHealthChecks().AddCheck("healthcheck_a", () => HealthCheckResult.Healthy()); 95return HealthCheckResult.Healthy(); 294checkStatus = HealthCheckResult.Healthy(); 312return HealthCheckResult.Healthy(); 361builder.Services.AddHealthChecks().AddCheck("parent_test", () => HealthCheckResult.Healthy());
HealthCheckTests.cs (1)
92healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Valkey.Tests (1)
ValkeyFunctionalTests.cs (1)
225healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Milvus.Client (1)
MilvusHealthCheck.cs (1)
27? HealthCheckResult.Healthy()
Aspire.NATS.Net (2)
NatsHealthCheck.cs (2)
15NatsConnectionState.Open => HealthCheckResult.Healthy(), 29return HealthCheckResult.Healthy();
Aspire.Qdrant.Client (1)
QdrantHealthCheck.cs (1)
25? HealthCheckResult.Healthy()
Aspire.Seq (1)
SeqHealthCheck.cs (1)
25? HealthCheckResult.Healthy()
CatalogDb (1)
CatalogDbInitializerHealthCheck.cs (1)
13{ IsCompletedSuccessfully: true } => Task.FromResult(HealthCheckResult.Healthy()),
HealthChecksSample (2)
DbConnectionHealthCheck.cs (1)
55return HealthCheckResult.Healthy();
SlowDependencyHealthCheck.cs (1)
25return Task.FromResult(HealthCheckResult.Healthy("Dependency is ready"));
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (15)
HealthCheckMiddlewareTests.cs (15)
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!")) 206.AddCheck("Baz", () => HealthCheckResult.Healthy("A-ok!")); 237.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 239.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 270.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 272.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 316.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 318.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 353.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 355.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 490.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 493.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!")));
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
ApplicationLifecycleHealthCheck.cs (1)
16private static readonly Task<HealthCheckResult> _healthy = Task.FromResult(HealthCheckResult.Healthy());
CommonHealthChecksExtensions.Manual.cs (1)
44=> Throw.IfNull(manualHealthCheck).Result = HealthCheckResult.Healthy();
ManualHealthCheckTracker.cs (1)
13private static readonly HealthCheckResult _healthy = HealthCheckResult.Healthy();
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
ManualHealthCheckTests.cs (1)
71var healthyCheck = HealthCheckResult.Healthy();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (42)
DefaultHealthCheckServiceTest.cs (17)
34.AddCheck("Foo", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))) 35.AddCheck("Foo", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))) 36.AddCheck("Bar", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))) 37.AddCheck("Baz", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))) 38.AddCheck("Baz", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))); 74b.AddAsyncCheck("HealthyCheck", _ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage, data)), healthyCheckTags); 177b.AddAsyncCheck("HealthyCheck", _ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage, data))); 284b.AddAsyncCheck("Succeeds", ct => Task.FromResult(HealthCheckResult.Healthy())); 334return Task.FromResult(HealthCheckResult.Healthy()); 501return HealthCheckResult.Healthy(); 508return HealthCheckResult.Healthy(); 542return HealthCheckResult.Healthy(); 568return HealthCheckResult.Healthy(); 668return Task.FromResult(HealthCheckResult.Healthy()); 686return Task.FromResult(HealthCheckResult.Healthy()); 704return Task.FromResult(HealthCheckResult.Healthy(data: data)); 736return Task.FromResult(HealthCheckResult.Healthy(data: new Dictionary<string, object> { { "self", this } }));
DependencyInjection\HealthChecksBuilderTest.cs (5)
23return Task.FromResult(HealthCheckResult.Healthy()); 117return HealthCheckResult.Healthy(); 163return Task.FromResult(HealthCheckResult.Healthy()); 208.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy())); 211.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Healthy()));
HealthCheckPublisherHostedServiceTest.cs (20)
251instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 258instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 270instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 282instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 297return Task.FromResult(HealthCheckResult.Healthy(HealthyMessage)); 310instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 322instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 334instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 346instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 526instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 533instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 545instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 557instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 572return Task.FromResult(HealthCheckResult.Healthy(HealthyMessage)); 585instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 597instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 609instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 621instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 749builder.AddCheck("one", () => { return HealthCheckResult.Healthy(); }) 750.AddCheck("two", () => { return HealthCheckResult.Healthy(); });
OrleansServiceDefaults (1)
Extensions.cs (1)
91.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
Playground.ServiceDefaults (1)
Extensions.cs (1)
88.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
Seq.ServiceDefaults (1)
Extensions.cs (1)
90.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
TestingAppHost1.ServiceDefaults (1)
Extensions.cs (1)
97.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
TestShop.ServiceDefaults (1)
Extensions.cs (1)
87.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);