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