|
|
|
|
using Autofac;
|
|
|
|
|
using HybirdFrameworkCore.Autofac;
|
|
|
|
|
using Service.HelpRight.ElectricMeter;
|
|
|
|
|
|
|
|
|
|
namespace Service.Help.ElectricMeter.ElectricClient;
|
|
|
|
|
|
|
|
|
|
public class ElectricMgr
|
|
|
|
|
{
|
|
|
|
|
public static ElectricClientRight electricClientRight;
|
|
|
|
|
public static ElectricClientLeft electricClientLeft;
|
|
|
|
|
public static ElectricMsg ElectricMsg01 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg02 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg03 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg04 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg05 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg06 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg07 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg08 = new ();
|
|
|
|
|
|
|
|
|
|
public static ElectricMsg ElectricMsg11 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg12 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg13 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg14 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg15 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg16 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg17 = new ();
|
|
|
|
|
public static ElectricMsg ElectricMsg18 = new ();
|
|
|
|
|
|
|
|
|
|
public static void InitRight()
|
|
|
|
|
{
|
|
|
|
|
if (electricClientRight == null)
|
|
|
|
|
{
|
|
|
|
|
electricClientRight = AppInfo.Container.Resolve<ElectricClientRight>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Task.Run(() => electricClientRight.Connect());
|
|
|
|
|
}
|
|
|
|
|
public static void InitLeft()
|
|
|
|
|
{
|
|
|
|
|
if (electricClientLeft == null)
|
|
|
|
|
{
|
|
|
|
|
electricClientLeft = AppInfo.Container.Resolve<ElectricClientLeft>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Task.Run(() => electricClientLeft.Connect());
|
|
|
|
|
}
|
|
|
|
|
}
|