1 type derived from HealthCheckService
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
18internal sealed partial class DefaultHealthCheckService : HealthCheckService
40 references to HealthCheckService
Aspire.Components.Common.Tests (6)
ConformanceTests.cs (6)
105HealthCheckService? healthCheckService = host.Services.GetService<HealthCheckService>(); 120HealthCheckService healthCheckService = host.Services.GetRequiredService<HealthCheckService>(); 308HealthCheckService healthCheckService = host.Services.GetRequiredService<HealthCheckService>();
Aspire.Milvus.Client.Tests (4)
AspireMilvusExtensionTests.cs (4)
135var healthCheckService = host.Services.GetRequiredService<HealthCheckService>(); 168var healthCheckService = host.Services.GetService<HealthCheckService>();
Aspire.MongoDB.Driver.Tests (8)
AspireMongoDBDriverExtensionsTests.cs (8)
105var healthCheckService = host.Services.GetRequiredService<HealthCheckService>(); 127var healthCheckService = host.Services.GetService<HealthCheckService>(); 149var healthCheckService = host.Services.GetRequiredService<HealthCheckService>(); 171var healthCheckService = host.Services.GetService<HealthCheckService>();
Aspire.NATS.Net.Tests (4)
AspireNatsClientExtensionsTests.cs (4)
140var healthCheckService = host.Services.GetRequiredService<HealthCheckService>(); 173var healthCheckService = host.Services.GetService<HealthCheckService>();
Aspire.StackExchange.Redis.Tests (2)
AspireRedisExtensionsTests.cs (2)
234var healthCheckService = host.Services.GetRequiredService<HealthCheckService>();
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Builder\HealthCheckApplicationBuilderExtensions.cs (1)
193if (app.ApplicationServices.GetService(typeof(HealthCheckService)) == null)
Builder\HealthCheckEndpointRouteBuilderExtensions.cs (1)
57if (endpoints.ServiceProvider.GetService(typeof(HealthCheckService)) == null)
HealthCheckMiddleware.cs (2)
17private readonly HealthCheckService _healthCheckService; 25HealthCheckService healthCheckService)
Microsoft.Extensions.Diagnostics.HealthChecks (9)
DependencyInjection\HealthCheckServiceCollectionExtensions.cs (5)
11/// Provides extension methods for registering <see cref="HealthCheckService"/> in an <see cref="IServiceCollection"/>. 16/// Adds the <see cref="HealthCheckService"/> to the container, using the provided delegate to register 21/// <see cref="HealthCheckService"/> instance in the <see cref="IServiceCollection"/>. It can be invoked 24/// <param name="services">The <see cref="IServiceCollection"/> to add the <see cref="HealthCheckService"/> to.</param> 28services.TryAddSingleton<HealthCheckService, DefaultHealthCheckService>();
HealthCheckPublisherHostedService.cs (2)
21private readonly HealthCheckService _healthCheckService; 32HealthCheckService healthCheckService,
HealthCheckService.cs (1)
18/// The default implementation of <see cref="HealthCheckService"/> is registered in the dependency
HealthCheckServiceOptions.cs (1)
9/// Options for the default implementation of <see cref="HealthCheckService"/>
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
DefaultHealthCheckServiceTest.cs (1)
638return (DefaultHealthCheckService)services.BuildServiceProvider(validateScopes: true).GetRequiredService<HealthCheckService>();
DependencyInjection\ServiceCollectionExtensionsTest.cs (2)
30Assert.Equal(typeof(HealthCheckService), actual.ServiceType); 60Assert.Equal(typeof(HealthCheckService), actual.ServiceType);