25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 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 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. }