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.
 
 
 
 

28 lines
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 int ConnectionBacklog { get; set; } = 10;
  9. public int MaxPendingMessagesPerClient { get; set; } = 250;
  10. public MqttPendingMessagesOverflowStrategy PendingMessagesOverflowStrategy { get; set; } = MqttPendingMessagesOverflowStrategy.DropOldestQueuedMessage;
  11. public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(15);
  12. public Action<MqttConnectionValidatorContext> ConnectionValidator { get; set; }
  13. public Action<MqttApplicationMessageInterceptorContext> ApplicationMessageInterceptor { get; set; }
  14. public Action<MqttSubscriptionInterceptorContext> SubscriptionInterceptor { get; set; }
  15. public IMqttServerStorage Storage { get; set; }
  16. }
  17. }