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)
246HealthReports = GetInitialHealthReports(context.Resource) 265HealthReports = GetInitialHealthReports(context.Resource) 724HealthReports = 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)
1805HealthReports =
41 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)
975string.Join(" ", newState.HealthReports.Select(p => $"{p.Name} = {Stringify(p.Status)}")), 1338if (snapshot.HealthReports.Length > 0) 1341foreach (var report in snapshot.HealthReports)
Backchannel\AppHostRpcTarget.cs (1)
145var healthStatus = CustomResourceSnapshot.ComputeHealthStatus(resourceEvent.Snapshot.HealthReports, resourceEvent.Snapshot.State?.Text);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1122var 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)
77Assert.Empty(snapshot.HealthReports); 1040resourceEvent.Snapshot.HealthReports.Any(report => 1117resourceEvent.Snapshot.HealthReports.Any(report => 1177resourceEvent.Snapshot.HealthReports.Any(report => 1182Assert.Single(failedEvent.Snapshot.HealthReports); 1238!resourceEvent.Snapshot.HealthReports.Any(report => report.Name == BrowserLogsBuilderExtensions.LastErrorPropertyName)).DefaultTimeout(); 1416resourceEvent.Snapshot.HealthReports.Any(report => report.Name == "session-0001" && report.Status == HealthStatus.Healthy)).DefaultTimeout(); 1418Assert.Single(firstRunningEvent.Snapshot.HealthReports); 1452resourceEvent.Snapshot.HealthReports.Any(report => report.Name == "session-0001" && report.Status == HealthStatus.Healthy) && 1453resourceEvent.Snapshot.HealthReports.Any(report => report.Name == "session-0002" && report.Status == HealthStatus.Healthy)).DefaultTimeout(); 1455Assert.Equal(2, secondRunningEvent.Snapshot.HealthReports.Length); 1481resourceEvent.Snapshot.HealthReports.Length == 1 && 1482resourceEvent.Snapshot.HealthReports[0].Name == "session-0002").DefaultTimeout(); 1484Assert.Equal("session-0002", firstCompletedEvent.Snapshot.HealthReports[0].Name); 1498resourceEvent.Snapshot.HealthReports.IsEmpty).DefaultTimeout(); 1550resourceEvent.Snapshot.HealthReports.Any(report => 1553resourceEvent.Snapshot.HealthReports.Any(report => 1566resourceEvent.Snapshot.HealthReports.Any(report =>
Aspire.Hosting.DevTunnels (1)
DevTunnelMonitor.cs (1)
693.. snapshot.HealthReports.Where(r => r.Name != key),
Aspire.Hosting.DevTunnels.Tests (6)
DevTunnelMonitorTests.cs (6)
65Assert.Equal(HealthStatus.Unhealthy, Assert.Single(test.Snapshot(test.Tunnel).HealthReports, r => r.Name == "tunnel-connection").Status); 192Assert.Equal(HealthStatus.Unhealthy, Assert.Single(test.Snapshot(test.Tunnel).HealthReports, r => r.Name == "tunnel-connection").Status); 229Assert.Equal(HealthStatus.Unhealthy, Assert.Single(test.Snapshot(test.Tunnel).HealthReports, r => r.Name == "tunnel-connection").Status); 303Assert.Equal(HealthStatus.Unhealthy, Assert.Single(test.Snapshot(test.Tunnel).HealthReports, r => r.Name == "tunnel-connection").Status); 356Assert.Equal(HealthStatus.Unhealthy, Assert.Single(test.Snapshot(test.Tunnel).HealthReports, r => r.Name == "tunnel-connection").Status); 724Assert.Equal(HealthStatus.Unhealthy, Assert.Single(test.Snapshot(test.Port).HealthReports).Status);
Aspire.Hosting.MongoDB.Tests (1)
SingleMemberReplicaSetFunctionalTests.cs (1)
161update => update.Snapshot.HealthReports.Any(r => r.Name == "mongo_check" && r.Status == HealthStatus.Healthy), ready.Token);
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);