24 references to HealthCheckResult
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 (2)
src\Components\Aspire.Qdrant.Client\QdrantHealthCheck.cs (2)
25: new HealthCheckResult(HealthStatus.Unhealthy); 29return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Milvus.Client (2)
MilvusHealthCheck.cs (2)
28: new HealthCheckResult(HealthStatus.Unhealthy, description: milvusHealthState.ToString()); 32return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.NATS.Net (1)
NatsHealthCheck.cs (1)
18_ => new HealthCheckResult(context.Registration.FailureStatus)
Aspire.Qdrant.Client (2)
QdrantHealthCheck.cs (2)
25: new HealthCheckResult(HealthStatus.Unhealthy); 29return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
HealthChecksSample (3)
DbConnectionHealthCheck.cs (1)
51return new HealthCheckResult(status: context.Registration.FailureStatus, exception: ex);
GCInfoHealthCheck.cs (1)
72return Task.FromResult(new HealthCheckResult(
SlowDependencyHealthCheck.cs (1)
28return Task.FromResult(new HealthCheckResult(
HealthChecksSandbox.AppHost (3)
Program.cs (3)
34() => new HealthCheckResult(status, description, new InvalidOperationException(exceptionMessage)) 41return new HealthCheckResult(HealthStatus.Unhealthy, "Initial failure state."); 44return new HealthCheckResult(HealthStatus.Healthy, "Healthy beginning second health check run.");
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (3)
HealthCheckResult.cs (3)
60return new HealthCheckResult(status: HealthStatus.Healthy, description, exception: null, data); 72return new HealthCheckResult(status: HealthStatus.Degraded, description, exception: exception, data); 84return new HealthCheckResult(status: HealthStatus.Unhealthy, description, exception, data);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
ManualHealthCheckTracker.cs (1)
54return new HealthCheckResult(worstStatus, stringBuilder.ToString());