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

43 line
942 B

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