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