using Autofac; using HybirdFrameworkCore.Autofac; namespace Service.Humiture.Client; public class HumiturePlcMgr { public static HumiturePlcClientRight humiturePlcClientRight; //public static HumiturePlcClientLeft HumiturePlcClientLeft; public static HumitureMsg HumitureMsg1 = new HumitureMsg(); //public static HumitureMsg HumitureMsg2 = new HumitureMsg(); public static void InitRight() { if (humiturePlcClientRight == null) { humiturePlcClientRight = AppInfo.Container.Resolve(); } Task.Run(() => humiturePlcClientRight.Connect()); } //public static void InitLeft() //{ // if (HumiturePlcClientLeft == null) // { // HumiturePlcClientLeft = AppInfo.Container.Resolve(); // } // Task.Run(() => HumiturePlcClientLeft.Connect()); //} }