3 instantiations of HealthReportSnapshot
Aspire.Hosting (1)
Health\ResourceHealthCheckService.cs (1)
278var 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)
191HealthReports = [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)
219private static bool ContainsAnyHealthReportChange(HealthReport report, ImmutableArray<HealthReportSnapshot> latestHealthReportSnapshots) 224if (!healthCheckNameToStatus.TryGetValue(key, out var checkReportSnapshot)) 272private static ImmutableArray<HealthReportSnapshot> MergeHealthReports(ImmutableArray<HealthReportSnapshot> healthReports, HealthReport report) 278var snapshot = new HealthReportSnapshot(key, entry.Status, entry.Description, entry.Exception?.ToString()); 283var existing = builder[i];
Orchestrator\ApplicationOrchestrator.cs (1)
330private 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() ?? [];