2 writes to FailureStatus
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
HealthCheckRegistration.cs (2)
67FailureStatus = failureStatus ?? HealthStatus.Unhealthy; 119FailureStatus = failureStatus ?? HealthStatus.Unhealthy;
25 references to FailureStatus
Aspire.Azure.Messaging.WebPubSub (1)
AspireWebPubSubExtensions.cs (1)
148return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Azure.Search.Documents (1)
AzureSearchIndexHealthCheck.cs (1)
31return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Elastic.Clients.Elasticsearch (2)
ElasticsearchHealthCheck.cs (2)
31: new HealthCheckResult(context.Registration.FailureStatus); 35return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Hosting.Elasticsearch (2)
src\Components\Aspire.Elastic.Clients.Elasticsearch\ElasticsearchHealthCheck.cs (2)
31: new HealthCheckResult(context.Registration.FailureStatus); 35return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Hosting.Nats (1)
src\Components\Aspire.NATS.Net\NatsHealthCheck.cs (1)
18_ => new HealthCheckResult(context.Registration.FailureStatus)
Aspire.Hosting.Qdrant (1)
src\Components\Aspire.Qdrant.Client\QdrantHealthCheck.cs (1)
30return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Milvus.Client (1)
MilvusHealthCheck.cs (1)
32return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.NATS.Net (1)
NatsHealthCheck.cs (1)
18_ => new HealthCheckResult(context.Registration.FailureStatus)
Aspire.Qdrant.Client (1)
QdrantHealthCheck.cs (1)
30return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.RabbitMQ.Client (1)
AspireRabbitMQExtensions.cs (1)
160return Task.FromResult(new HealthCheckResult(context.Registration.FailureStatus, exception: ex));
HealthChecksSample (3)
DbConnectionHealthCheck.cs (1)
51return new HealthCheckResult(status: context.Registration.FailureStatus, exception: ex);
GCInfoHealthCheck.cs (1)
70var result = allocated >= options.Threshold ? context.Registration.FailureStatus : HealthStatus.Healthy;
SlowDependencyHealthCheck.cs (1)
29status: context.Registration.FailureStatus,
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (2)
125status: registration.FailureStatus, 140status: registration.FailureStatus,
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (8)
DependencyInjection\HealthChecksBuilderTest.cs (8)
37Assert.Equal(HealthStatus.Degraded, registration.FailureStatus); 57Assert.Equal(HealthStatus.Degraded, registration.FailureStatus); 80Assert.Equal(HealthStatus.Degraded, registration.FailureStatus); 102Assert.Equal(HealthStatus.Degraded, registration.FailureStatus); 128Assert.Equal(HealthStatus.Unhealthy, registration.FailureStatus); 151Assert.Equal(HealthStatus.Unhealthy, registration.FailureStatus); 174Assert.Equal(HealthStatus.Unhealthy, registration.FailureStatus); 197Assert.Equal(HealthStatus.Unhealthy, registration.FailureStatus);