You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MqttServerOptions.cs 634 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 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. }