注释默认的验证机制

This commit is contained in:
yzp 2025-02-21 15:30:05 +08:00
parent f4afd8e900
commit e102529c6f

View File

@ -430,10 +430,11 @@ public class Startup : AppStartup
} }
}); });
// 注册自己业务的 Mqtt 处理器,如果有不同的认证方式,要把以下这句注释掉
if (mqttOptions.Value.Enabled) if (mqttOptions.Value.Enabled)
{ {
MqttHostedService.RegistMqttEventHandler(new MqttEventHandlerForAdminNet()); // [以下是验证的示例] 注册自己业务的 Mqtt 处理器,如果有不同的认证方式,要把以下这句注释掉
//MqttHostedService.RegistMqttEventHandler(new MqttEventHandlerForAdminNet(), int.MaxValue);
} }
} }
} }