winmr-api/Models/ProcessInfo.cs

27 lines
690 B
C#
Raw Normal View History

2025-07-02 16:06:50 +03:00
// File: Models/ProcessInfo.cs
using System.Runtime.Versioning;
using System.Text.Json.Serialization;
2025-06-30 18:15:07 +03:00
namespace WebmrAPI.Models
{
2025-07-02 16:06:50 +03:00
[SupportedOSPlatform("windows")]
public class ProcessInfo : ProcessBaseInfo
2025-06-30 18:15:07 +03:00
{
2025-07-02 16:06:50 +03:00
private DateTime _lastUpdate = DateTime.MinValue;
private List<MemoryRegionInfo> _regions = new();
2025-06-30 18:15:07 +03:00
2025-07-02 16:06:50 +03:00
[JsonIgnore]
public DateTime LastUpdate
{
get => LockedGet(ref _lastUpdate);
set => LockedSet(ref _lastUpdate, value);
}
public List<MemoryRegionInfo> MemoryRegions
{
get => LockedGet(ref _regions);
set => LockedSet(ref _regions, value);
}
2025-06-30 18:15:07 +03:00
}
2025-07-02 16:06:50 +03:00
}