56 references to Name
Aspire.Azure.AI.OpenAI (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Azure.Data.Tables (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Azure.Messaging.EventHubs (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Azure.Messaging.ServiceBus (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Azure.Messaging.WebPubSub (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Azure.Search.Documents (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Azure.Security.KeyVault (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Azure.Storage.Blobs (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Azure.Storage.Queues (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Components.Common.Tests (1)
ConformanceTests.cs (1)
128registeredNames.Add(healthCheckRegistration.Name);
Aspire.Confluent.Kafka (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Elastic.Clients.Elasticsearch (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
335var healthCheckRegistrationKeys = options.Registrations.Select(hcr => hcr.Name).ToHashSet();
Aspire.Microsoft.Data.SqlClient (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Milvus.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.MongoDB.Driver (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.MySqlConnector (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.NATS.Net (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Npgsql (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Qdrant.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.RabbitMQ.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.Seq (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
Aspire.StackExchange.Redis (1)
src\Components\Common\HealthChecksExtensions.cs (1)
17builder.TryAddHealthCheck(healthCheckRegistration.Name, hcBuilder => hcBuilder.Add(healthCheckRegistration));
HealthChecksSample (1)
GCInfoHealthCheck.cs (1)
51var options = _options.Get(context.Registration.Name);
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (2)
HealthCheckMiddlewareTests.cs (2)
484Predicate = (check) => check.Name == "Foo" || check.Name == "Baz",
Microsoft.Extensions.Diagnostics.HealthChecks (10)
DefaultHealthCheckService.cs (10)
65entries[registration.Name] = tasks[index++].Result; 85using (_logger.BeginScope(new HealthCheckLogScope(registration.Name))) 90Log.HealthCheckBegin(_logger, registration.Name); 169if (!distinctRegistrations.Add(registration.Name)) 173builder.Append(registration.Name).Append(", "); 238HealthCheckEndHealthy(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description); 242HealthCheckEndDegraded(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description, entry.Exception); 246HealthCheckEndUnhealthy(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description, entry.Exception); 255HealthCheckError(logger, registration.Name, duration.TotalMilliseconds, exception); 264new HealthCheckDataLogValue(registration.Name, entry.Data),
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
ApplicationLifecycleHealthChecksExtensionsTests.cs (1)
62Assert.Equal("ApplicationLifecycle", r.Name);
ManualHealthCheckExtensionsTests.cs (1)
57Assert.Equal(r.Name, name);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (14)
DefaultHealthCheckServiceTest.cs (2)
183var results = await service.CheckHealthAsync(c => c.Name == "HealthyCheck"); 702{ "name", context.Registration.Name },
DependencyInjection\HealthChecksBuilderTest.cs (10)
36Assert.Equal("test", registration.Name); 56Assert.Equal("test", registration.Name); 79Assert.Equal("test", registration.Name); 101Assert.Equal("test", registration.Name); 127Assert.Equal("test", registration.Name); 150Assert.Equal("test", registration.Name); 173Assert.Equal("test", registration.Name); 196Assert.Equal("test", registration.Name); 219actual => Assert.Equal("Foo", actual.Name), 220actual => Assert.Equal("Bar", actual.Name));
HealthCheckPublisherHostedServiceTest.cs (2)
518options.Predicate = (r) => r.Name.Contains("Delay") && !r.Name.Contains("_2");