namespace MQTTnet.Server.Configuration { /// /// Main Settings Model /// public class SettingsModel { /// /// Set default connection timeout in seconds /// public int CommunicationTimeout { get; set; } = 15; /// /// Set 0 to disable connection backlogging /// public int ConnectionBacklog { get; set; } /// /// Enable support for persistent sessions /// public bool EnablePersistentSessions { get; set; } = false; /// /// Listen Settings /// public TcpEndpointModel TcpEndPoint { get; set; } = new TcpEndpointModel(); /// /// Encryption Listen Settings /// public TcpEndpointModel EncryptedTcpEndPoint { get; set; } = new TcpEndpointModel(); /// /// Settings for the Web Socket endpoint. /// public WebSocketEndpointModel WebSocketEndpoint { get; set; } = new WebSocketEndpointModel(); /// /// Set limit for max pending messages per client /// public int MaxPendingMessagesPerClient { get; set; } = 250; /// /// The settings for retained messages. /// public RetainedApplicationMessagesModel RetainedApplicationMessages { get; set; } = new RetainedApplicationMessagesModel(); } }