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

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