3 instantiations of HealthReportSnapshot
Aspire.Hosting (1)
Health\ResourceHealthCheckService.cs (1)
250var snapshot = new HealthReportSnapshot(key, entry.Status, entry.Description, entry.Exception?.ToString());
Aspire.Hosting.Tests (2)
Health\HealthStatusTests.cs (1)
26var reports = healthStatusStrings?.Select<string?, HealthReportSnapshot>((h, i) => new HealthReportSnapshot(i.ToString(), h is null ? null : Enum.Parse<HealthStatus>(h), null, null)).ToImmutableArray() ?? [];
Health\ResourceHealthCheckServiceTests.cs (1)
154HealthReports = [new HealthReportSnapshot("healthcheck_a", Status: null, Description: null, ExceptionText: null)]
11 references to HealthReportSnapshot
Aspire.Hosting (10)
ApplicationModel\CustomResourceSnapshot.cs (3)
18private readonly ImmutableArray<HealthReportSnapshot> _healthReports = []; 91public ImmutableArray<HealthReportSnapshot> HealthReports 126internal static HealthStatus? ComputeHealthStatus(ImmutableArray<HealthReportSnapshot> healthReports, string? state)
Health\ResourceHealthCheckService.cs (6)
191private static bool ContainsAnyHealthReportChange(HealthReport report, ImmutableArray<HealthReportSnapshot> latestHealthReportSnapshots) 196if (!healthCheckNameToStatus.TryGetValue(key, out var checkReportSnapshot)) 244private static ImmutableArray<HealthReportSnapshot> MergeHealthReports(ImmutableArray<HealthReportSnapshot> healthReports, HealthReport report) 250var snapshot = new HealthReportSnapshot(key, entry.Status, entry.Description, entry.Exception?.ToString()); 255var existing = builder[i];
Orchestrator\ApplicationOrchestrator.cs (1)
204private static ImmutableArray<HealthReportSnapshot> GetInitialHealthReports(IResource resource)
Aspire.Hosting.Tests (1)
Health\HealthStatusTests.cs (1)
26var reports = healthStatusStrings?.Select<string?, HealthReportSnapshot>((h, i) => new HealthReportSnapshot(i.ToString(), h is null ? null : Enum.Parse<HealthStatus>(h), null, null)).ToImmutableArray() ?? [];