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(); } Task.Run(() => UpsClient.Connect()); } }