csharp809ae470 | 1 | using CascadeIDE.Models; |
| 2 | |
| 3 | namespace CascadeIDE.Cockpit.Composition.HostSurface; |
| 4 | |
| 5 | /// <summary> |
| 6 | /// Сборка <see cref="IdeHealthStatusMountContext"/> с тем же <paramref name="surfaceId"/>, что и кадр хоста / CDS. |
| 7 | /// </summary> |
| 8 | public static class IdeHealthMountContextFactory |
| 9 | { |
| 10 | public static IdeHealthStatusMountContext Create( |
| 11 | IInstrumentMountPolicyResolver resolver, |
| 12 | DisplaySettings displaySettings, |
| 13 | string surfaceId, |
| 14 | string slotId, |
| 15 | IdeHealthStatusMountPayload payload) |
| 16 | { |
| 17 | var instrumentId = CockpitStandardInstrumentIds.IdeHealthStatusV1; |
| 18 | var style = resolver.Resolve(displaySettings, surfaceId, slotId, instrumentId); |
| 19 | return new IdeHealthStatusMountContext(instrumentId, slotId, style, payload); |
| 20 | } |
| 21 | } |
| 22 | |
View only · write via MCP/CIDE