31 instantiations of HealthCheckRegistration
Aspire.Azure.AI.OpenAI (1)
src\Components\Common\AzureComponent.cs (1)
118builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Azure.Data.Tables (1)
src\Components\Common\AzureComponent.cs (1)
118builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Azure.Messaging.EventHubs (1)
src\Components\Common\AzureComponent.cs (1)
118builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Azure.Messaging.ServiceBus (1)
src\Components\Common\AzureComponent.cs (1)
118builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Azure.Messaging.WebPubSub (1)
src\Components\Common\AzureComponent.cs (1)
118builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Azure.Search.Documents (1)
src\Components\Common\AzureComponent.cs (1)
118builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Azure.Security.KeyVault (1)
src\Components\Common\AzureComponent.cs (1)
118builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Azure.Storage.Blobs (1)
src\Components\Common\AzureComponent.cs (1)
118builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Azure.Storage.Queues (1)
src\Components\Common\AzureComponent.cs (1)
118builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Confluent.Kafka (2)
AspireKafkaConsumerExtensions.cs (1)
154builder.TryAddHealthCheck(new HealthCheckRegistration(healthCheckName,
AspireKafkaProducerExtensions.cs (1)
154builder.TryAddHealthCheck(new HealthCheckRegistration(healthCheckName,
Aspire.Elastic.Clients.Elasticsearch (1)
AspireElasticClientsElasticsearchExtensions.cs (1)
109builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Hosting.Elasticsearch (1)
ElasticsearchBuilderExtensions.cs (1)
75.Add(new HealthCheckRegistration(
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
60var healthCheckRegistration = new HealthCheckRegistration(
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
63.Add(new HealthCheckRegistration(
Aspire.Microsoft.Data.SqlClient (1)
AspireSqlServerSqlClientExtensions.cs (1)
97builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Milvus.Client (1)
AspireMilvusExtensions.cs (1)
92builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.MySqlConnector (1)
AspireMySqlConnectorExtensions.cs (1)
77builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Npgsql (1)
AspirePostgreSqlNpgsqlExtensions.cs (1)
78builder.TryAddHealthCheck(new HealthCheckRegistration(
Aspire.Qdrant.Client (1)
AspireQdrantExtensions.cs (1)
89builder.TryAddHealthCheck(new HealthCheckRegistration(
Microsoft.Extensions.Diagnostics.HealthChecks (8)
DependencyInjection\HealthChecksBuilderAddCheckExtensions.cs (4)
66return builder.Add(new HealthCheckRegistration(name, instance, failureStatus, tags, timeout)); 126return builder.Add(new HealthCheckRegistration(name, GetServiceOrCreateInstance, failureStatus, tags, timeout)); 216return builder.Add(new HealthCheckRegistration(name, CreateInstance, failureStatus, tags)); 254return builder.Add(new HealthCheckRegistration(name, CreateInstance, failureStatus, tags, timeout));
DependencyInjection\HealthChecksBuilderDelegateExtensions.cs (4)
59return builder.Add(new HealthCheckRegistration(name, instance, failureStatus: null, tags, timeout)); 102return builder.Add(new HealthCheckRegistration(name, instance, failureStatus: null, tags, timeout)); 145return builder.Add(new HealthCheckRegistration(name, instance, failureStatus: null, tags, timeout)); 188return builder.Add(new HealthCheckRegistration(name, instance, failureStatus: null, tags, timeout));
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 });
67 references to HealthCheckRegistration
Aspire.Azure.AI.OpenAI (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Azure.Data.Tables (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Azure.Messaging.EventHubs (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Azure.Messaging.ServiceBus (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Azure.Messaging.WebPubSub (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Azure.Search.Documents (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Azure.Security.KeyVault (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Azure.Storage.Blobs (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Azure.Storage.Queues (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Confluent.Kafka (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Elastic.Clients.Elasticsearch (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
60var healthCheckRegistration = new HealthCheckRegistration(
Aspire.Microsoft.Data.SqlClient (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Milvus.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.MongoDB.Driver (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.MySqlConnector (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.NATS.Net (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Npgsql (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Qdrant.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.RabbitMQ.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.Seq (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Aspire.StackExchange.Redis (1)
src\Components\Common\HealthChecksExtensions.cs (1)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
HealthCheckOptions.cs (1)
23public Func<HealthCheckRegistration, bool>? Predicate { get; set; }
Microsoft.Extensions.Diagnostics.HealthChecks (20)
DefaultHealthCheckService.cs (9)
39Func<HealthCheckRegistration, bool>? predicate, 54foreach (var registration in registrations) 63foreach (var registration in registrations) 74private async Task<HealthReportEntry> RunCheckAsync(HealthCheckRegistration registration, CancellationToken cancellationToken) 160private static void ValidateRegistrations(IEnumerable<HealthCheckRegistration> registrations) 167foreach (var registration in registrations) 233public static void HealthCheckEnd(ILogger logger, HealthCheckRegistration registration, HealthReportEntry entry, TimeSpan duration) 254public static void HealthCheckError(ILogger logger, HealthCheckRegistration registration, Exception exception, TimeSpan duration) => 257public static void HealthCheckData(ILogger logger, HealthCheckRegistration registration, HealthReportEntry entry)
DependencyInjection\HealthChecksBuilder.cs (1)
19public IHealthChecksBuilder Add(HealthCheckRegistration registration)
DependencyInjection\IHealthChecksBuilder.cs (3)
14/// Adds a <see cref="HealthCheckRegistration"/> for a health check. 16/// <param name="registration">The <see cref="HealthCheckRegistration"/>.</param> 17IHealthChecksBuilder Add(HealthCheckRegistration registration);
HealthCheckPublisherHostedService.cs (3)
53private (TimeSpan Delay, TimeSpan Period) GetTimerOptions(HealthCheckRegistration registration) 108foreach (var hc in _healthCheckServiceOptions.Value.Registrations) 184var withOptionsPredicate = (HealthCheckRegistration r) =>
HealthCheckPublisherOptions.cs (1)
78public Func<HealthCheckRegistration, bool>? Predicate { get; set; }
HealthCheckService.cs (1)
61Func<HealthCheckRegistration, bool>? predicate,
HealthCheckServiceOptions.cs (2)
16public ICollection<HealthCheckRegistration> Registrations { get; } = new List<HealthCheckRegistration>();
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (5)
HealthCheckContext.cs (2)
12/// Gets or sets the <see cref="HealthCheckRegistration"/> of the currently executing <see cref="IHealthCheck"/>. 15public HealthCheckRegistration Registration { get; set; } = default!;
HealthCheckRegistration.cs (3)
46/// Creates a new <see cref="HealthCheckRegistration"/> for an existing <see cref="IHealthCheck"/> instance. 74/// Creates a new <see cref="HealthCheckRegistration"/> for an existing <see cref="IHealthCheck"/> instance. 93/// Creates a new <see cref="HealthCheckRegistration"/> for an existing <see cref="IHealthCheck"/> instance.
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
ApplicationLifecycleHealthChecksExtensionsTests.cs (1)
59foreach (var r in registrations)
ManualHealthCheckExtensionsTests.cs (1)
54foreach (var r in registrations)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (8)
DependencyInjection\HealthChecksBuilderTest.cs (8)
35var registration = Assert.Single(options.Registrations); 55var registration = Assert.Single(options.Registrations); 78var registration = Assert.Single(options.Registrations); 100var registration = Assert.Single(options.Registrations); 126var registration = Assert.Single(options.Registrations); 149var registration = Assert.Single(options.Registrations); 172var registration = Assert.Single(options.Registrations); 195var registration = Assert.Single(options.Registrations);
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesOptions.cs (1)
54public Func<HealthCheckRegistration, bool>? FilterChecks { get; set; }
Microsoft.Extensions.Diagnostics.Probes.Tests (4)
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 });
MockHealthCheckService.cs (1)
18public override Task<HealthReport> CheckHealthAsync(Func<HealthCheckRegistration, bool>? predicate, CancellationToken cancellationToken = default)