2 instantiations of HealthReportSnapshot
Aspire.Hosting (1)
Health\ResourceHealthCheckService.cs (1)
163var snapshot = new HealthReportSnapshot(key, entry.Status, entry.Description, entry.Exception?.ToString());
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() ?? [];
11 references to HealthReportSnapshot
Aspire.Hosting (10)
ApplicationModel\CustomResourceSnapshot.cs (3)
15private readonly ImmutableArray<HealthReportSnapshot> _healthReports = []; 78public ImmutableArray<HealthReportSnapshot> HealthReports 108internal static HealthStatus? ComputeHealthStatus(ImmutableArray<HealthReportSnapshot> healthReports, string? state)
Dcp\ApplicationExecutor.cs (1)
240static ImmutableArray<HealthReportSnapshot> GetInitialHealthReports(IResource resource)
Health\ResourceHealthCheckService.cs (6)
99static bool ContainsAnyHealthReportChange(HealthReport report, ImmutableArray<HealthReportSnapshot> latestHealthReportSnapshots) 104if (!healthCheckNameToStatus.TryGetValue(key, out var checkReportSnapshot)) 157ImmutableArray<HealthReportSnapshot> MergeHealthReports(ImmutableArray<HealthReportSnapshot> healthReports, HealthReport report) 163var snapshot = new HealthReportSnapshot(key, entry.Status, entry.Description, entry.Exception?.ToString()); 168var existing = builder[i];
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() ?? [];