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

44 lines
1009 B

  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. Plugin.GetInstance().GetPlugin<DeviceMgr>().StartService();
  26. //MessageLog.GetInstance.InfoNotify = new Action<string>((msg =>
  27. //{
  28. // Console.WriteLine(msg);
  29. //}));
  30. }
  31. /// <summary>
  32. /// 主业务线停止
  33. /// </summary>
  34. public void Stop()
  35. {
  36. Plugin.GetInstance().Dispose();
  37. }
  38. }
  39. }