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