注释默认的验证机制
This commit is contained in:
parent
f4afd8e900
commit
e102529c6f
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user