终端一体化运控平台
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.

MainConsole.cs 1.1 KiB

2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using BPASmartClient.Message;
  2. using HBLConsole.Communication;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace BPASmartClient.Business
  9. {
  10. /// <summary>
  11. /// 主控入口
  12. /// </summary>
  13. public class MainConsole
  14. {
  15. /// <summary>
  16. /// 主业务线开始
  17. /// </summary>
  18. public void Start()
  19. {
  20. //网络相关
  21. InternetInfo.InitConfig();
  22. //业务插件初始化
  23. Plugin.GetInstance().Init();
  24. //主题初始化
  25. TopicDefine.GetInstance().Initialize(Plugin.GetInstance().GetPlugin<DeviceMgr>().GetDevices());
  26. //设备开启
  27. Plugin.GetInstance().GetPlugin<DeviceMgr>().StartService();
  28. MessageLog.GetInstance.InfoNotify = new Action<string>((msg =>
  29. {
  30. Console.WriteLine(msg);
  31. }));
  32. }
  33. /// <summary>
  34. /// 主业务线停止
  35. /// </summary>
  36. public void Stop()
  37. {
  38. }
  39. }
  40. }