6 instantiations of HealthCheckContext
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
88var context = new HealthCheckContext { Registration = registration };
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (5)
ApplicationLifecycleHealthCheckTests.cs (1)
17HealthCheckContext context = new HealthCheckContext();
ManualHealthCheckTests.cs (4)
18HealthCheckContext context = new HealthCheckContext(); 35HealthCheckContext context = new HealthCheckContext(); 59HealthCheckContext context = new HealthCheckContext(); 85HealthCheckContext context = new HealthCheckContext();
34 references to HealthCheckContext
Aspire.Azure.Messaging.WebPubSub (1)
AspireWebPubSubExtensions.cs (1)
138public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.Azure.Search.Documents (1)
AzureSearchIndexHealthCheck.cs (1)
21public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.Elastic.Clients.Elasticsearch (1)
ElasticsearchHealthCheck.cs (1)
22public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.Hosting.Elasticsearch (1)
src\Components\Aspire.Elastic.Clients.Elasticsearch\ElasticsearchHealthCheck.cs (1)
22public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.Hosting.Nats (1)
src\Components\Aspire.NATS.Net\NatsHealthCheck.cs (1)
11public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.Hosting.Qdrant (1)
src\Components\Aspire.Qdrant.Client\QdrantHealthCheck.cs (1)
18public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.Milvus.Client (1)
MilvusHealthCheck.cs (1)
20public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.NATS.Net (1)
NatsHealthCheck.cs (1)
11public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.Qdrant.Client (1)
QdrantHealthCheck.cs (1)
18public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.RabbitMQ.Client (1)
AspireRabbitMQExtensions.cs (1)
158public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.Seq (1)
SeqHealthCheck.cs (1)
19public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext _, CancellationToken cancellationToken = new CancellationToken())
CatalogDb (1)
CatalogDbInitializerHealthCheck.cs (1)
7public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
HealthChecksSample (3)
DbConnectionHealthCheck.cs (1)
33public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default(CancellationToken))
GCInfoHealthCheck.cs (1)
49public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default(CancellationToken))
SlowDependencyHealthCheck.cs (1)
21public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default(CancellationToken))
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (1)
88var context = new HealthCheckContext { Registration = registration };
DelegateHealthCheck.cs (1)
33public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) => _check(cancellationToken);
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (3)
HealthCheckContext.cs (1)
7/// Health check context. Provides health check registrations to <see cref="IHealthCheck.CheckHealthAsync(HealthCheckContext, System.Threading.CancellationToken)"/>.
HealthCheckRegistration.cs (1)
20/// <see cref="HealthCheckContext.Registration"/>. This allows a health check implementation to access named
IHealthCheck.cs (1)
21Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
ApplicationLifecycleHealthCheck.cs (1)
44public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
ManualHealthCheckService.cs (1)
37public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) => Task.FromResult(_tracker.GetHealthCheckResult());
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (5)
ApplicationLifecycleHealthCheckTests.cs (1)
17HealthCheckContext context = new HealthCheckContext();
ManualHealthCheckTests.cs (4)
18HealthCheckContext context = new HealthCheckContext(); 35HealthCheckContext context = new HealthCheckContext(); 59HealthCheckContext context = new HealthCheckContext(); 85HealthCheckContext context = new HealthCheckContext();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (7)
DefaultHealthCheckServiceTest.cs (5)
666public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 681public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 698public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 710public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 734public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken)
DependencyInjection\HealthChecksBuilderTest.cs (2)
233public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 251public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)