Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

29 rindas
1.1 KiB

  1. using System;
  2. namespace MQTTnet.Server
  3. {
  4. public class MqttServerOptions : IMqttServerOptions
  5. {
  6. public MqttServerDefaultEndpointOptions DefaultEndpointOptions { get; } = new MqttServerDefaultEndpointOptions();
  7. public MqttServerTlsEndpointOptions TlsEndpointOptions { get; } = new MqttServerTlsEndpointOptions();
  8. public bool EnablePersistentSessions { get; set; }
  9. public int ConnectionBacklog { get; set; } = 10;
  10. public int MaxPendingMessagesPerClient { get; set; } = 250;
  11. public MqttPendingMessagesOverflowStrategy PendingMessagesOverflowStrategy { get; set; } = MqttPendingMessagesOverflowStrategy.DropOldestQueuedMessage;
  12. public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(15);
  13. public Action<MqttConnectionValidatorContext> ConnectionValidator { get; set; }
  14. public Action<MqttApplicationMessageInterceptorContext> ApplicationMessageInterceptor { get; set; }
  15. public Action<MqttSubscriptionInterceptorContext> SubscriptionInterceptor { get; set; }
  16. public IMqttServerStorage Storage { get; set; }
  17. }
  18. }