25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
711 B

  1. using System;
  2. namespace MQTTnet.Core.Client
  3. {
  4. public sealed class MqttClientOptions
  5. {
  6. public string Server { get; set; }
  7. public int? Port { get; set; }
  8. public MqttClientSslOptions SslOptions { get; } = new MqttClientSslOptions();
  9. public string UserName { get; set; }
  10. public string Password { get; set; }
  11. public string ClientId { get; set; } = Guid.NewGuid().ToString().Replace("-", string.Empty);
  12. public bool CleanSession { get; set; } = true;
  13. public TimeSpan KeepAlivePeriod { get; set; } = TimeSpan.FromSeconds(5);
  14. public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(10);
  15. }
  16. }