21 references to ResourceHealthCheckService
Aspire.HealthChecks.Tests (7)
AspireHealthCheckFunctionalTests.cs (4)
131var databaseReport = healthReports.FirstOrDefault(r => r.Name == ResourceHealthCheckService.GetChildHealthReportName(parentName, "database")); 137var cacheReport = healthReports.FirstOrDefault(r => r.Name == ResourceHealthCheckService.GetChildHealthReportName(parentName, "cache")); 143var storageReport = healthReports.FirstOrDefault(r => r.Name == ResourceHealthCheckService.GetChildHealthReportName(parentName, "storage")); 149var externalApiReport = healthReports.FirstOrDefault(r => r.Name == ResourceHealthCheckService.GetChildHealthReportName(parentName, "external_api"));
AspireHttpHealthCheckUnitTests.cs (3)
123var reports = ResourceHealthCheckService.MergeHealthReports([], unhealthyChild, DateTime.UtcNow); 127reports = ResourceHealthCheckService.MergeHealthReports(reports, plainHealthy, DateTime.UtcNow); 141var reports = ResourceHealthCheckService.MergeHealthReports([], report, DateTime.UtcNow);
Aspire.Hosting (6)
DistributedApplicationBuilder.cs (3)
757_innerBuilder.Services.AddSingleton<ResourceHealthCheckService>(); 758_innerBuilder.Services.AddHostedService<ResourceHealthCheckService>(sp => sp.GetRequiredService<ResourceHealthCheckService>());
Health\AspireHttpHealthCheck.cs (1)
14/// expanded into separate health reports by <see cref="ResourceHealthCheckService"/>.
Health\HealthCheckConstants.cs (1)
8/// and <see cref="ResourceHealthCheckService"/>.
Health\ResourceHealthCheckService.cs (1)
14internal class ResourceHealthCheckService(ILogger<ResourceHealthCheckService> logger, ResourceNotificationService resourceNotificationService, ResourceLoggerService resourceLoggerService, HealthCheckService healthCheckService, IServiceProvider services, IDistributedApplicationEventing eventing, TimeProvider timeProvider) : BackgroundService
Aspire.Hosting.Tests (8)
Health\ResourceHealthCheckServiceTests.cs (8)
159var healthService = app.Services.GetRequiredService<ResourceHealthCheckService>(); 223var rhcs = app.Services.GetRequiredService<ResourceHealthCheckService>(); 263var rhcs = app.Services.GetRequiredService<ResourceHealthCheckService>(); 483var rhcs = app.Services.GetRequiredService<ResourceHealthCheckService>();