mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 17:00:03 +08:00
38 lines
1.5 KiB
C#
38 lines
1.5 KiB
C#
using System;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public class MqttServerOptions : IMqttServerOptions
|
|
{
|
|
public MqttServerTcpEndpointOptions DefaultEndpointOptions { get; } = new MqttServerTcpEndpointOptions();
|
|
|
|
public MqttServerTlsTcpEndpointOptions TlsEndpointOptions { get; } = new MqttServerTlsTcpEndpointOptions();
|
|
|
|
public string ClientId { get; set; }
|
|
|
|
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 IMqttServerUnsubscriptionInterceptor UnsubscriptionInterceptor { get; set; }
|
|
|
|
public IMqttServerStorage Storage { get; set; }
|
|
|
|
public IMqttRetainedMessagesManager RetainedMessagesManager { get; set; } = new MqttRetainedMessagesManager();
|
|
|
|
public IMqttServerApplicationMessageInterceptor UndeliveredMessageInterceptor { get; set; }
|
|
}
|
|
}
|