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

ManagedMqttClientOptions.cs 743 B

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