Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

MqttServerOptions.cs 903 B

7 lat temu
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. }