/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/powerdisplay/PowerDisplay.Lib/Models/MonitorStateFile.cs
30 строк
1 KB
moooyo
[PowerDisplay] Stable monitor Id + survive transient discovery failures (#47712)
08 май 2026, 10:25
Не верифицирован
08 май 2026, 10:25
95b7055
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Text.Json.Serialization; namespace PowerDisplay.Common.Models { /// <summary> /// Monitor state file structure for JSON persistence. /// Contains all monitor states indexed by Monitor.Id. /// </summary> public sealed class MonitorStateFile { /// <summary> /// Gets or sets the monitor states dictionary. /// Key is the monitor's unique Id (new DevicePath-based format, e.g., <c>\\?\DISPLAY#DELD1A8#5&abc&0&UID1</c>). /// </summary> [JsonPropertyName("monitors")] public Dictionary<string, MonitorStateEntry> Monitors { get; set; } = new(); /// <summary> /// Gets or sets when the file was last updated. /// </summary> [JsonPropertyName("lastUpdated")] public DateTime LastUpdated { get; set; } } }