您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MqttServerOptions.cs 646 B

12345678910111213141516171819
  1. using System;
  2. using MQTTnet.Core.Packets;
  3. using MQTTnet.Core.Protocol;
  4. namespace MQTTnet.Core.Server
  5. {
  6. public sealed class MqttServerOptions
  7. {
  8. public MqttServerDefaultEndpointOptions DefaultEndpointOptions { get; } = new MqttServerDefaultEndpointOptions();
  9. public MqttServerTlsEndpointOptions TlsEndpointOptions { get; } = new MqttServerTlsEndpointOptions();
  10. public int ConnectionBacklog { get; set; } = 10;
  11. public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(15);
  12. public Func<MqttConnectPacket, MqttConnectReturnCode> ConnectionValidator { get; set; }
  13. }
  14. }