namespace MQTTnet.Server.Configuration { /// /// Main Settings Model /// public class SettingsModel { public 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 ListenModel Endpoint { get; set; } = new ListenModel(); /// /// Encryption Listen Settings /// public ListenModel EndpointEncryption { get; set; } = new ListenModel(); /// /// Set limit for max pending messages per client /// public int MaxPendingMessagesPerClient { get; set; } = 250; } }