Hardwares.cs 719 B

12345678910111213141516171819
  1. using HardwareData;
  2. using System.Collections.Concurrent;
  3. namespace RealtimeData;
  4. public class Hardwares
  5. {
  6. public ConcurrentDictionary<byte, Mini8Data> Mini8s { get; set; } = [];
  7. public ConcurrentDictionary<byte, ConcurrentDictionary<byte, ChannelData>> Mini8Channels { get; set; } = [];
  8. }
  9. public class HardwareAddress
  10. {
  11. public ConcurrentDictionary<byte, Mini8Address> Mini8sAddress { get; set; } = [];
  12. public ConcurrentDictionary<byte, ConcurrentDictionary<byte, ChannelAddress>> Mini8ChannelsAddress { get; set; } = [];
  13. public PLCAddress? PLCAddress { get; set; }
  14. public ConcurrentDictionary<byte, ConcurrentDictionary<byte, ChannelAddressPLC>> PLCChannelsAddresses { get; set; } = [];
  15. }