Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

SettingsModel.cs 1.6 KiB

pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. namespace MQTTnet.Server.Configuration
  2. {
  3. /// <summary>
  4. /// Main Settings Model
  5. /// </summary>
  6. public class SettingsModel
  7. {
  8. /// <summary>
  9. /// Set default connection timeout in seconds
  10. /// </summary>
  11. public int CommunicationTimeout { get; set; } = 15;
  12. /// <summary>
  13. /// Set 0 to disable connection backlogging
  14. /// </summary>
  15. public int ConnectionBacklog { get; set; }
  16. /// <summary>
  17. /// Enable support for persistent sessions
  18. /// </summary>
  19. public bool EnablePersistentSessions { get; set; } = false;
  20. /// <summary>
  21. /// Listen Settings
  22. /// </summary>
  23. public TcpEndPointModel TcpEndPoint { get; set; } = new TcpEndPointModel();
  24. /// <summary>
  25. /// Encryption Listen Settings
  26. /// </summary>
  27. public TcpEndPointModel EncryptedTcpEndPoint { get; set; } = new TcpEndPointModel();
  28. /// <summary>
  29. /// Settings for the Web Socket endpoint.
  30. /// </summary>
  31. public WebSocketEndPointModel WebSocketEndPoint { get; set; } = new WebSocketEndPointModel();
  32. /// <summary>
  33. /// Set limit for max pending messages per client
  34. /// </summary>
  35. public int MaxPendingMessagesPerClient { get; set; } = 250;
  36. /// <summary>
  37. /// The settings for retained messages.
  38. /// </summary>
  39. public RetainedApplicationMessagesModel RetainedApplicationMessages { get; set; } = new RetainedApplicationMessagesModel();
  40. public bool EnableDebugLogging { get; set; } = false;
  41. }
  42. }