21 references to ResourceHealthCheckService
Aspire.HealthChecks.Tests (7)
AspireHealthCheckFunctionalTests.cs (4)
131
var databaseReport = healthReports.FirstOrDefault(r => r.Name ==
ResourceHealthCheckService
.GetChildHealthReportName(parentName, "database"));
137
var cacheReport = healthReports.FirstOrDefault(r => r.Name ==
ResourceHealthCheckService
.GetChildHealthReportName(parentName, "cache"));
143
var storageReport = healthReports.FirstOrDefault(r => r.Name ==
ResourceHealthCheckService
.GetChildHealthReportName(parentName, "storage"));
149
var externalApiReport = healthReports.FirstOrDefault(r => r.Name ==
ResourceHealthCheckService
.GetChildHealthReportName(parentName, "external_api"));
AspireHttpHealthCheckUnitTests.cs (3)
123
var reports =
ResourceHealthCheckService
.MergeHealthReports([], unhealthyChild, DateTime.UtcNow);
127
reports =
ResourceHealthCheckService
.MergeHealthReports(reports, plainHealthy, DateTime.UtcNow);
141
var 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)
14
internal 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)
159
var
healthService = app.Services.GetRequiredService<
ResourceHealthCheckService
>();
223
var
rhcs = app.Services.GetRequiredService<
ResourceHealthCheckService
>();
263
var
rhcs = app.Services.GetRequiredService<
ResourceHealthCheckService
>();
483
var
rhcs = app.Services.GetRequiredService<
ResourceHealthCheckService
>();