mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
32 lines
1.2 KiB
C#
32 lines
1.2 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 IMqttServerStorage Storage { get; set; }
|
|
}
|
|
}
|