mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 17:00:03 +08:00
* Added option for how many subscriptions to send in a single call to the server. aws iotcore limits this to 8 * Split subscription messages up to 8 at a time when reconnecting
24 lines
798 B
C#
24 lines
798 B
C#
using System;
|
|
using MQTTnet.Client.Options;
|
|
using MQTTnet.Server;
|
|
|
|
namespace MQTTnet.Extensions.ManagedClient
|
|
{
|
|
public class ManagedMqttClientOptions : IManagedMqttClientOptions
|
|
{
|
|
public IMqttClientOptions ClientOptions { get; set; }
|
|
|
|
public TimeSpan AutoReconnectDelay { get; set; } = TimeSpan.FromSeconds(5);
|
|
|
|
public TimeSpan ConnectionCheckInterval { get; set; } = TimeSpan.FromSeconds(1);
|
|
|
|
public IManagedMqttClientStorage Storage { get; set; }
|
|
|
|
public int MaxPendingMessages { get; set; } = int.MaxValue;
|
|
|
|
public MqttPendingMessagesOverflowStrategy PendingMessagesOverflowStrategy { get; set; } = MqttPendingMessagesOverflowStrategy.DropNewMessage;
|
|
|
|
public int? MaxSubcribeUnsubscribeMessagesAtOnce { get; set; } = null;
|
|
}
|
|
}
|