1 write to Registration
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
88var context = new HealthCheckContext { Registration = registration };
18 references to Registration
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 (4)
DbConnectionHealthCheck.cs (1)
51return new HealthCheckResult(status: context.Registration.FailureStatus, exception: ex);
GCInfoHealthCheck.cs (2)
51var options = _options.Get(context.Registration.Name); 70var result = allocated >= options.Threshold ? context.Registration.FailureStatus : HealthStatus.Healthy;
SlowDependencyHealthCheck.cs (1)
29status: context.Registration.FailureStatus,
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
HealthCheckRegistration.cs (1)
20/// <see cref="HealthCheckContext.Registration"/>. This allows a health check implementation to access named
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
DefaultHealthCheckServiceTest.cs (1)
702{ "name", context.Registration.Name },