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.

31 lines
917 B

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<HumiturePlcClientRight>();
}
Task.Run(() => humiturePlcClientRight.Connect());
}
//public static void InitLeft()
//{
// if (HumiturePlcClientLeft == null)
// {
// HumiturePlcClientLeft = AppInfo.Container.Resolve<HumiturePlcClientLeft>();
// }
// Task.Run(() => HumiturePlcClientLeft.Connect());
//}
}