8 writes to HealthReports
Aspire.Hosting (5)
ApplicationModel\CustomResourceSnapshotExtensions.cs (1)
29return snapshot with { HealthReports = healthReports };
Health\ResourceHealthCheckService.cs (1)
204HealthReports = healthReports
Orchestrator\ApplicationOrchestrator.cs (3)
248HealthReports = GetInitialHealthReports(context.Resource) 267HealthReports = GetInitialHealthReports(context.Resource) 734HealthReports = GetInitialHealthReports(resource)
Aspire.Hosting.Tests (3)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
195HealthReports = [
Health\ResourceHealthCheckServiceTests.cs (1)
189HealthReports = [new HealthReportSnapshot("healthcheck_a", Status: null, Description: null, ExceptionText: null)]
ResourceNotificationTests.cs (1)
1514HealthReports =
33 references to HealthReports
Aspire.Hosting (11)
ApplicationModel\CustomResourceSnapshot.cs (3)
80/// This value is derived from <see cref="HealthReports"/>. 204HealthReports.SequenceEqual(other.HealthReports);
ApplicationModel\ResourceNotificationService.cs (3)
938string.Join(" ", newState.HealthReports.Select(p => $"{p.Name} = {Stringify(p.Status)}")), 1301if (snapshot.HealthReports.Length > 0) 1304foreach (var report in snapshot.HealthReports)
Backchannel\AppHostRpcTarget.cs (1)
145var healthStatus = CustomResourceSnapshot.ComputeHealthStatus(resourceEvent.Snapshot.HealthReports, resourceEvent.Snapshot.State?.Text);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1100var healthReports = snapshot.HealthReports
Dashboard\DashboardServiceData.cs (1)
85HealthReports = snapshot.HealthReports,
Health\ResourceHealthCheckService.cs (2)
191if (ContainsAnyHealthReportChange(report, currentEvent.Snapshot.HealthReports)) 199var healthReports = MergeHealthReports(s.HealthReports, report, lastRunAt);
Aspire.Hosting.Browsers.Tests (18)
BrowserLogsBuilderExtensionsTests.cs (18)
78Assert.Empty(snapshot.HealthReports); 1041resourceEvent.Snapshot.HealthReports.Any(report => 1118resourceEvent.Snapshot.HealthReports.Any(report => 1178resourceEvent.Snapshot.HealthReports.Any(report => 1183Assert.Single(failedEvent.Snapshot.HealthReports); 1239!resourceEvent.Snapshot.HealthReports.Any(report => report.Name == BrowserLogsBuilderExtensions.LastErrorPropertyName)).DefaultTimeout(); 1417resourceEvent.Snapshot.HealthReports.Any(report => report.Name == "session-0001" && report.Status == HealthStatus.Healthy)).DefaultTimeout(); 1419Assert.Single(firstRunningEvent.Snapshot.HealthReports); 1453resourceEvent.Snapshot.HealthReports.Any(report => report.Name == "session-0001" && report.Status == HealthStatus.Healthy) && 1454resourceEvent.Snapshot.HealthReports.Any(report => report.Name == "session-0002" && report.Status == HealthStatus.Healthy)).DefaultTimeout(); 1456Assert.Equal(2, secondRunningEvent.Snapshot.HealthReports.Length); 1482resourceEvent.Snapshot.HealthReports.Length == 1 && 1483resourceEvent.Snapshot.HealthReports[0].Name == "session-0002").DefaultTimeout(); 1485Assert.Equal("session-0002", firstCompletedEvent.Snapshot.HealthReports[0].Name); 1499resourceEvent.Snapshot.HealthReports.IsEmpty).DefaultTimeout(); 1551resourceEvent.Snapshot.HealthReports.Any(report => 1554resourceEvent.Snapshot.HealthReports.Any(report => 1567resourceEvent.Snapshot.HealthReports.Any(report =>
Aspire.Hosting.Tests (3)
Health\ResourceHealthCheckServiceTests.cs (2)
130e => e.Snapshot.State?.Text == KnownResourceStates.Running && e.Snapshot.HealthReports.Single().Status == HealthStatus.Unhealthy).DefaultTimeout(); 133Assert.Equal("Error calling HealthCheckService.", runningEvent.Snapshot.HealthReports.Single().Description);
ResourceNotificationTests.cs (1)
162resourceEvent.Snapshot.HealthReports,
Testing.Tests (1)
WaitFailures.cs (1)
156await app.ResourceNotifications.WaitForResourceAsync(nginx.Resource.Name, x => x.Snapshot.HealthReports.All(x => x.Status.HasValue), cts.Token);