mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-21 04:03:05 +08:00
30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public class MqttServerOptions : IMqttServerOptions
|
|
{
|
|
public MqttServerTcpEndpointOptions DefaultEndpointOptions { get; } = new MqttServerTcpEndpointOptions();
|
|
|
|
public MqttServerTlsTcpEndpointOptions TlsEndpointOptions { get; } = new MqttServerTlsTcpEndpointOptions();
|
|
|
|
public bool EnablePersistentSessions { get; set; }
|
|
|
|
public int MaxPendingMessagesPerClient { get; set; } = 250;
|
|
|
|
public MqttPendingMessagesOverflowStrategy PendingMessagesOverflowStrategy { get; set; } = MqttPendingMessagesOverflowStrategy.DropOldestQueuedMessage;
|
|
|
|
public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(15);
|
|
|
|
public IMqttServerConnectionValidator ConnectionValidator { get; set; }
|
|
|
|
public IMqttServerApplicationMessageInterceptor ApplicationMessageInterceptor { get; set; }
|
|
|
|
public IMqttServerClientMessageQueueInterceptor ClientMessageQueueInterceptor { get; set; }
|
|
|
|
public IMqttServerSubscriptionInterceptor SubscriptionInterceptor { get; set; }
|
|
|
|
public IMqttServerStorage Storage { get; set; }
|
|
}
|
|
}
|