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.

ManagedMqttClientOptions.cs 713 B

преди 7 години
преди 7 години
преди 7 години
преди 7 години
преди 7 години
123456789101112131415161718192021
  1. using System;
  2. using MQTTnet.Client;
  3. using MQTTnet.Server;
  4. namespace MQTTnet.Extensions.ManagedClient
  5. {
  6. public 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. }
  15. }