😎清理代码
This commit is contained in:
parent
c8d6d7ce1e
commit
4735f4c0a1
@ -28,5 +28,5 @@ public enum TenantEventTypeEnum
|
||||
/// 删除租户
|
||||
/// </summary>
|
||||
[Description("删除租户")]
|
||||
Delete = 2,
|
||||
Delete = 2,
|
||||
}
|
||||
@ -46,7 +46,7 @@ public class MqttHostedService(IOptions<MqttOptions> mqttOptions) : IHostedServi
|
||||
var options = new MqttServerOptionsBuilder()
|
||||
.WithDefaultEndpoint() // 默认地址127.0.0.1
|
||||
.WithDefaultEndpointPort(_mqttOptions.Port) // 端口号
|
||||
//.WithDefaultEndpointBoundIPAddress(_mqttOptions.IPAddress) // IP地址
|
||||
//.WithDefaultEndpointBoundIPAddress(_mqttOptions.IPAddress) // IP地址
|
||||
.WithConnectionBacklog(_mqttOptions.ConnectionBacklog) // 最大连接数
|
||||
.WithPersistentSessions()
|
||||
.Build();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user