25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.Business
- {
- /// <summary>
- /// 主控入口
- /// </summary>
- public class MainConsole
- {
- /// <summary>
- /// 主业务线开始
- /// </summary>
- public void Start()
- {
- //网络相关
- InternetInfo.InitConfig();
- //业务插件初始化
- Plugin.GetInstance().Init();
-
- //设备开启
- Plugin.GetInstance().GetPlugin<DeviceMgr>().StartService();
-
- //MessageLog.GetInstance.InfoNotify = new Action<string>((msg =>
- //{
- // Console.WriteLine(msg);
- //}));
- }
-
- /// <summary>
- /// 主业务线停止
- /// </summary>
- public void Stop()
- {
- Plugin.GetInstance().Dispose();
- }
- }
- }
|