tbox协议支持配置,阳光铭岛配置ygmd,玖型配置jx

master
rszn 5 months ago
parent de7a3c61c3
commit 0b68b9c7f8

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

@ -38,5 +38,8 @@
"Dest": "D:\\zip", "Dest": "D:\\zip",
"Days": 7 "Days": 7
}, },
"TBox": {
"Type": "ygmd"
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }

@ -38,5 +38,8 @@
"Dest": "D:\\zip", "Dest": "D:\\zip",
"Days": 7 "Days": 7
}, },
"TBox": {
"Type": "ygmd"
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }

Loading…
Cancel
Save