您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

24 行
820 B

  1. using System;
  2. using MQTTnet.Client.Options;
  3. using MQTTnet.Server;
  4. namespace MQTTnet.Extensions.ManagedClient
  5. {
  6. public sealed class ManagedMqttClientOptions : IManagedMqttClientOptions
  7. {
  8. public IMqttClientOptions ClientOptions { get; set; }
  9. public TimeSpan AutoReconnectDelay { get; set; } = TimeSpan.FromSeconds(5);
  10. public TimeSpan ConnectionCheckInterval { get; set; } = TimeSpan.FromSeconds(1);
  11. public IManagedMqttClientStorage Storage { get; set; }
  12. public int MaxPendingMessages { get; set; } = int.MaxValue;
  13. public MqttPendingMessagesOverflowStrategy PendingMessagesOverflowStrategy { get; set; } = MqttPendingMessagesOverflowStrategy.DropNewMessage;
  14. public int MaxTopicFiltersInSubscribeUnsubscribePackets { get; set; } = int.MaxValue;
  15. }
  16. }