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.

преди 7 години
преди 7 години
преди 7 години
преди 7 години
преди 7 години
преди 7 години
преди 7 години
12345678910111213141516171819202122232425
  1. using System;
  2. using MQTTnet.Core.Packets;
  3. using MQTTnet.Core.Protocol;
  4. namespace MQTTnet.Core.Server
  5. {
  6. public 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 Action<MqttApplicationMessageInterceptorContext> ApplicationMessageInterceptor { get; set; }
  14. public Action<MqttSubscriptionInterceptorContext> SubscriptionsInterceptor { get; set; }
  15. public IMqttServerStorage Storage { get; set; }
  16. }
  17. }