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.

25 lines
611 B

using Autofac;
using HybirdFrameworkCore.Autofac;
using Service.Ups.UpsMsg;
//using HslCommunication;
namespace Service.Ups.Client;
public class UpsMgr
{
public static UpsClient UpsClient;
public static UpsInfoMsg UpsInfoMsg=new ();
//public static UpsInfoMsgHandling UpsInfoMsgHandling=new ();
//TODO::需要提供写入那些数据,一个不是全部写入方法都需要
public static void Init()
{
if (UpsClient == null)
{
UpsClient = AppInfo.Container.Resolve<UpsClient>();
}
Task.Run(() => UpsClient.Connect());
}
}