终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.2 KiB

  1. using System.Collections.Concurrent;
  2. namespace BPASmartClient.DATABUS
  3. {
  4. /// <summary>
  5. /// 数据总线
  6. /// </summary>
  7. public class Class_DataBus
  8. {
  9. #region 单例模式
  10. public static Class_DataBus dataBus = null;
  11. public static Class_DataBus GetInstance()
  12. {
  13. if (dataBus == null)
  14. {
  15. dataBus = new Class_DataBus();
  16. }
  17. return dataBus;
  18. }
  19. #endregion
  20. #region 基础配置
  21. #endregion
  22. #region 实时数据->大数据量
  23. /// <summary>
  24. /// 设备数据
  25. /// </summary>
  26. public ConcurrentDictionary<string, Dictionary<string,DeviceDataModel>> Dic_DeviceData = new ConcurrentDictionary<string,Dictionary<string,DeviceDataModel>>();
  27. /// <summary>
  28. /// API数据
  29. /// </summary>
  30. public ConcurrentDictionary<string,string> Dic_APIData = new ConcurrentDictionary<string,string>();
  31. #endregion
  32. }
  33. public class DeviceDataModel
  34. {
  35. public string VarName { get; set; }
  36. public string VarVaule { get; set; }
  37. public string DataType { get; set; }
  38. }
  39. }