Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

53 linhas
1.7 KiB

  1. namespace MQTTnet.Server.Configuration
  2. {
  3. /// <summary>
  4. /// MQTT settings Model
  5. /// </summary>
  6. public class MqttSettingsModel
  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. /// <summary>
  41. /// Enables or disables the MQTTnet internal logging.
  42. /// </summary>
  43. public bool EnableDebugLogging { get; set; } = false;
  44. }
  45. }