更新网关双冗余

This commit is contained in:
Kimdiego2098
2024-02-28 16:12:38 +08:00
parent 17efebb8e8
commit cc45e2aec0
@@ -126,6 +126,9 @@ public class ManagementWoker : BackgroundService
GlobalData = _serviceScope.ServiceProvider.GetService<GlobalData>();
Options = App.GetOptions<ManagementOptions>();
IsStartBusinessDevice = Options.Redundancy.Enable ? Options.Redundancy.IsStartBusinessDevice : true;
//初始化直接启动
IsStart = true;
StartLock.Release();
if (Options.Redundancy.Enable)
{
var udpDmtp = GetUdpDmtp(Options);