選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

MqttServerOptions.cs 1.1 KiB

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