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 816 B

1234567891011121314151617181920212223
  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. public Func<MqttApplicationMessage, MqttApplicationMessage> ApplicationMessageInterceptor { get; set; }
  14. public IMqttServerStorage Storage { get; set; }
  15. }
  16. }