| 1 | #nullable enable |
| 2 | using CascadeIDE.Models; |
| 3 | using CascadeIDE.Cockpit.ComputingUnits.EnvironmentReadiness; |
| 4 | |
| 5 | namespace CascadeIDE.Cockpit.Channels.EnvironmentReadiness; |
| 6 | |
| 7 | /// <summary> |
| 8 | /// Builds Environment Readiness snapshot payload from app state. |
| 9 | /// </summary> |
| 10 | public sealed class EnvironmentReadinessChannel : IEnvironmentReadinessChannel |
| 11 | { |
| 12 | private readonly EnvironmentReadinessSnapshotUnit _snapshotUnit = EnvironmentReadinessSnapshotUnit.Default; |
| 13 | |
| 14 | public ValueTask<IReadOnlyList<AnnunciatorLampItem>> Build(in EnvironmentReadinessChannelContext context) => |
| 15 | new(_snapshotUnit.BuildAsync(context)); |
| 16 | } |
| 17 | |
View only · write via MCP/CIDE