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

20 行
634 B

  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 DefaultEndpointOptions DefaultEndpointOptions { get; } = new DefaultEndpointOptions();
  9. public MqttServerTlsEndpointOptions TlsEndpointOptions { get; } = new MqttServerTlsEndpointOptions();
  10. public int ConnectionBacklog { get; set; } = 10;
  11. public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(10);
  12. public Func<MqttConnectPacket, MqttConnectReturnCode> ConnectionValidator { get; set; }
  13. }
  14. }