|
|
|
@ -98,11 +98,20 @@ foreach (var s in list.Split(";"))
|
|
|
|
|
|
|
|
|
|
AppInfo.Container = app.Services.GetAutofacRoot();
|
|
|
|
|
|
|
|
|
|
var listen = builder.Configuration.GetSection("Listen");
|
|
|
|
|
CarServerMgr.InitServer(int.Parse(listen.GetSection("Port").Value ?? "5588"));
|
|
|
|
|
|
|
|
|
|
var tBoxListen = builder.Configuration.GetSection("TBoxListen");
|
|
|
|
|
TBoxServerMgr.InitTBoxServer(int.Parse(tBoxListen.GetSection("Port").Value ?? "9999"));
|
|
|
|
|
|
|
|
|
|
string? tboxType = AppSettingsHelper.GetContent("TBox", "Type");
|
|
|
|
|
if ("ygmd" == tboxType)
|
|
|
|
|
{
|
|
|
|
|
var tBoxListen = builder.Configuration.GetSection("TBoxListen");
|
|
|
|
|
TBoxServerMgr.InitTBoxServer(int.Parse(tBoxListen.GetSection("Port").Value ?? "9999"));
|
|
|
|
|
}
|
|
|
|
|
if ("jx" == tboxType)
|
|
|
|
|
{
|
|
|
|
|
var listen = builder.Configuration.GetSection("Listen");
|
|
|
|
|
CarServerMgr.InitServer(int.Parse(listen.GetSection("Port").Value ?? "5588"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TaskInit.Init();
|
|
|
|
|
|
|
|
|
|