20 implementations of IHealthCheck
Aspire.Azure.Messaging.WebPubSub (1)
AspireWebPubSubExtensions.cs (1)
129private sealed class HealthCheck : IHealthCheck
Aspire.Azure.Search.Documents (1)
AzureSearchIndexHealthCheck.cs (1)
11internal sealed class AzureSearchIndexHealthCheck : IHealthCheck
Aspire.Elastic.Clients.Elasticsearch (1)
ElasticsearchHealthCheck.cs (1)
11internal sealed class ElasticsearchHealthCheck : IHealthCheck
Aspire.Hosting.Elasticsearch (1)
src\Components\Aspire.Elastic.Clients.Elasticsearch\ElasticsearchHealthCheck.cs (1)
11internal sealed class ElasticsearchHealthCheck : IHealthCheck
Aspire.Hosting.Qdrant (1)
src\Components\Aspire.Qdrant.Client\QdrantHealthCheck.cs (1)
8internal sealed class QdrantHealthCheck : IHealthCheck
Aspire.Milvus.Client (1)
MilvusHealthCheck.cs (1)
10internal sealed class MilvusHealthCheck : IHealthCheck
Aspire.Qdrant.Client (1)
QdrantHealthCheck.cs (1)
8internal sealed class QdrantHealthCheck : IHealthCheck
HealthChecksSample (3)
DbConnectionHealthCheck.cs (1)
9public abstract class DbConnectionHealthCheck : IHealthCheck
GCInfoHealthCheck.cs (1)
40public class GCInfoHealthCheck : IHealthCheck
SlowDependencyHealthCheck.cs (1)
10public class SlowDependencyHealthCheck : IHealthCheck
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DelegateHealthCheck.cs (1)
14internal sealed class DelegateHealthCheck : IHealthCheck
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
ApplicationLifecycleHealthCheck.cs (1)
14internal sealed class ApplicationLifecycleHealthCheck : IHealthCheck
ManualHealthCheckService.cs (1)
15internal sealed class ManualHealthCheckService : IHealthCheck
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (7)
DefaultHealthCheckServiceTest.cs (5)
660private class CheckWithServiceDependency : IHealthCheck 672private class CheckWithServiceNotMultiThreadDependency : IHealthCheck 696private class NameCapturingCheck : IHealthCheck 708private class FailCapturingCheck : IHealthCheck 716private class DisposableDependeciesCheck : IHealthCheck
DependencyInjection\HealthChecksBuilderTest.cs (2)
231private class TestHealthCheck : IHealthCheck 239private class TestHealthCheckWithArgs : IHealthCheck
67 references to IHealthCheck
Aspire.Azure.AI.OpenAI (2)
AspireAzureOpenAIExtensions.cs (1)
118protected override IHealthCheck CreateHealthCheck(AzureOpenAIClient client, AzureOpenAISettings settings)
src\Components\Common\AzureComponent.cs (1)
42protected abstract IHealthCheck CreateHealthCheck(TClient client, TSettings settings);
Aspire.Azure.Data.Tables (2)
AspireTablesExtensions.cs (1)
96protected override IHealthCheck CreateHealthCheck(TableServiceClient client, AzureDataTablesSettings settings)
src\Components\Common\AzureComponent.cs (1)
42protected abstract IHealthCheck CreateHealthCheck(TClient client, TSettings settings);
Aspire.Azure.Messaging.EventHubs (2)
EventHubsComponent.cs (1)
22protected override IHealthCheck CreateHealthCheck(TClient client, TSettings settings)
src\Components\Common\AzureComponent.cs (1)
42protected abstract IHealthCheck CreateHealthCheck(TClient client, TSettings settings);
Aspire.Azure.Messaging.ServiceBus (2)
AspireServiceBusExtensions.cs (1)
83protected override IHealthCheck CreateHealthCheck(ServiceBusClient client, AzureMessagingServiceBusSettings settings)
src\Components\Common\AzureComponent.cs (1)
42protected abstract IHealthCheck CreateHealthCheck(TClient client, TSettings settings);
Aspire.Azure.Messaging.WebPubSub (2)
AspireWebPubSubExtensions.cs (1)
101protected override IHealthCheck CreateHealthCheck(WebPubSubServiceClient client, AzureMessagingWebPubSubSettings settings)
src\Components\Common\AzureComponent.cs (1)
42protected abstract IHealthCheck CreateHealthCheck(TClient client, TSettings settings);
Aspire.Azure.Search.Documents (2)
AspireAzureSearchExtensions.cs (1)
103protected override IHealthCheck CreateHealthCheck(SearchIndexClient client, AzureSearchSettings settings)
src\Components\Common\AzureComponent.cs (1)
42protected abstract IHealthCheck CreateHealthCheck(TClient client, TSettings settings);
Aspire.Azure.Security.KeyVault (2)
AspireKeyVaultExtensions.cs (1)
135protected override IHealthCheck CreateHealthCheck(SecretClient client, AzureSecurityKeyVaultSettings settings)
src\Components\Common\AzureComponent.cs (1)
42protected abstract IHealthCheck CreateHealthCheck(TClient client, TSettings settings);
Aspire.Azure.Storage.Blobs (2)
AspireBlobStorageExtensions.cs (1)
96protected override IHealthCheck CreateHealthCheck(BlobServiceClient client, AzureStorageBlobsSettings settings)
src\Components\Common\AzureComponent.cs (1)
42protected abstract IHealthCheck CreateHealthCheck(TClient client, TSettings settings);
Aspire.Azure.Storage.Queues (2)
AspireQueueStorageExtensions.cs (1)
99protected override IHealthCheck CreateHealthCheck(QueueServiceClient client, AzureStorageQueuesSettings settings)
src\Components\Common\AzureComponent.cs (1)
42protected abstract IHealthCheck CreateHealthCheck(TClient client, TSettings settings);
Aspire.Hosting.Nats (1)
src\Components\Aspire.NATS.Net\NatsHealthCheck.cs (1)
9internal sealed class NatsHealthCheck(INatsConnection connection) : IHealthCheck
Aspire.NATS.Net (1)
NatsHealthCheck.cs (1)
9internal sealed class NatsHealthCheck(INatsConnection connection) : IHealthCheck
Aspire.RabbitMQ.Client (1)
AspireRabbitMQExtensions.cs (1)
156private sealed class FailedHealthCheck(Exception ex) : IHealthCheck
Aspire.Seq (1)
SeqHealthCheck.cs (1)
12internal sealed class SeqHealthCheck(string seqUri) : IHealthCheck
CatalogDb (1)
CatalogDbInitializerHealthCheck.cs (1)
5internal sealed class CatalogDbInitializerHealthCheck(CatalogDbInitializer dbInitializer) : IHealthCheck
Microsoft.Extensions.Diagnostics.HealthChecks (16)
DefaultHealthCheckService.cs (1)
81var healthCheck = registration.Factory(scope.ServiceProvider);
DelegateHealthCheck.cs (1)
11/// A simple implementation of <see cref="IHealthCheck"/> which uses a provided delegate to
DependencyInjection\HealthChecksBuilderAddCheckExtensions.cs (11)
13/// Provides basic extension methods for registering <see cref="IHealthCheck"/> instances in an <see cref="IHealthChecksBuilder"/>. 22/// <param name="instance">An <see cref="IHealthCheck"/> instance.</param> 33IHealthCheck instance, 45/// <param name="instance">An <see cref="IHealthCheck"/> instance.</param> 57IHealthCheck instance, 92IEnumerable<string> tags) where T : class, IHealthCheck 121TimeSpan? timeout = null) where T : class, IHealthCheck 151this IHealthChecksBuilder builder, string name, params object[] args) where T : class, IHealthCheck 180params object[] args) where T : class, IHealthCheck 211params object[] args) where T : class, IHealthCheck 249params object[] args) where T : class, IHealthCheck
DependencyInjection\IHealthChecksBuilder.cs (1)
20/// Gets the <see cref="IServiceCollection"/> into which <see cref="IHealthCheck"/> instances should be registered.
HealthCheckService.cs (2)
13/// A service which can be used to check the status of <see cref="IHealthCheck"/> instances 28/// <see cref="IHealthCheck"/> implementations can be registered through extension methods provided by
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (19)
HealthCheckContext.cs (2)
7/// Health check context. Provides health check registrations to <see cref="IHealthCheck.CheckHealthAsync(HealthCheckContext, System.Threading.CancellationToken)"/>. 12/// Gets or sets the <see cref="HealthCheckRegistration"/> of the currently executing <see cref="IHealthCheck"/>.
HealthCheckRegistration.cs (15)
11/// Represent the registration information associated with an <see cref="IHealthCheck"/> implementation. 19/// The registration is provided to an <see cref="IHealthCheck"/> implementation during execution through 26private Func<IServiceProvider, IHealthCheck> _factory; 40public HealthCheckRegistration(string name, IHealthCheck instance, HealthStatus? failureStatus, IEnumerable<string>? tags) 46/// Creates a new <see cref="HealthCheckRegistration"/> for an existing <see cref="IHealthCheck"/> instance. 49/// <param name="instance">The <see cref="IHealthCheck"/> instance.</param> 56public HealthCheckRegistration(string name, IHealthCheck instance, HealthStatus? failureStatus, IEnumerable<string>? tags, TimeSpan? timeout) 74/// Creates a new <see cref="HealthCheckRegistration"/> for an existing <see cref="IHealthCheck"/> instance. 77/// <param name="factory">A delegate used to create the <see cref="IHealthCheck"/> instance.</param> 85Func<IServiceProvider, IHealthCheck> factory, 93/// Creates a new <see cref="HealthCheckRegistration"/> for an existing <see cref="IHealthCheck"/> instance. 96/// <param name="factory">A delegate used to create the <see cref="IHealthCheck"/> instance.</param> 105Func<IServiceProvider, IHealthCheck> factory, 126/// Gets or sets a delegate used to create the <see cref="IHealthCheck"/> instance. 128public Func<IServiceProvider, IHealthCheck> Factory
HealthReport.cs (1)
10/// Represents the result of executing a group of <see cref="IHealthCheck"/> instances.
HealthReportEntry.cs (1)
11/// Represents an entry in a <see cref="HealthReport"/>. Corresponds to the result of a single <see cref="IHealthCheck"/>.
Microsoft.Extensions.Diagnostics.Probes (6)
TcpEndpointProbesExtensions.cs (6)
22/// if service is considered as healthy <see cref="IHealthCheck"/>. 35/// if service is considered as healthy <see cref="IHealthCheck"/>. 60/// if service is considered as healthy <see cref="IHealthCheck"/>. 79/// if service is considered as healthy <see cref="IHealthCheck"/>. 100/// if service is considered as healthy <see cref="IHealthCheck"/>. 119/// if service is considered as healthy <see cref="IHealthCheck"/>.
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
KubernetesProbesExtensionsTests.cs (3)
44var livenessRegistration = new HealthCheckRegistration("liveness", Mock.Of<IHealthCheck>(), null, new[] { ProbeTags.Liveness }); 45var startupRegistration = new HealthCheckRegistration("startup", Mock.Of<IHealthCheck>(), null, new[] { ProbeTags.Startup }); 46var readinessRegistration = new HealthCheckRegistration("readiness", Mock.Of<IHealthCheck>(), null, new[] { ProbeTags.Readiness });