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.
 
 
 
 

32 regels
1.2 KiB

  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. using MQTTnet.Client;
  6. using MQTTnet.Server;
  7. namespace MQTTnet.Extensions.ManagedClient
  8. {
  9. public sealed class ManagedMqttClientOptions
  10. {
  11. public MqttClientOptions ClientOptions { get; set; }
  12. public TimeSpan AutoReconnectDelay { get; set; } = TimeSpan.FromSeconds(5);
  13. public TimeSpan ConnectionCheckInterval { get; set; } = TimeSpan.FromSeconds(1);
  14. public IManagedMqttClientStorage Storage { get; set; }
  15. public int MaxPendingMessages { get; set; } = int.MaxValue;
  16. public MqttPendingMessagesOverflowStrategy PendingMessagesOverflowStrategy { get; set; } = MqttPendingMessagesOverflowStrategy.DropNewMessage;
  17. /// <summary>
  18. /// Defines the maximum amount of topic filters which will be sent in a SUBSCRIBE/UNSUBSCRIBE packet.
  19. /// Amazon AWS limits this number to 8. The default is int.MaxValue.
  20. /// </summary>
  21. public int MaxTopicFiltersInSubscribeUnsubscribePackets { get; set; } = int.MaxValue;
  22. }
  23. }