using BPASmartClient.Message;
using HBLConsole.Communication;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BPASmartClient.Business
{
///
/// 主控入口
///
public class MainConsole
{
///
/// 主业务线开始
///
public void Start()
{
//网络相关
InternetInfo.InitConfig();
//业务插件初始化
Plugin.GetInstance().Init();
//主题初始化
TopicDefine.GetInstance().Initialize(Plugin.GetInstance().GetPlugin().GetDevices());
//设备开启
Plugin.GetInstance().GetPlugin().StartService();
MessageLog.GetInstance.InfoNotify = new Action((msg =>
{
Console.WriteLine(msg);
}));
}
///
/// 主业务线停止
///
public void Stop()
{
}
}
}