mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 17:00:03 +08:00
23 lines
743 B
C#
23 lines
743 B
C#
using System;
|
|
using MQTTnet.Client;
|
|
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;
|
|
}
|
|
}
|