25 lines
518 B
C#
25 lines
518 B
C#
using System.Security.Authentication;
|
|
|
|
namespace MasstransferInfrastructure.Mqtt.Model;
|
|
|
|
/// <summary>
|
|
/// Mqtt 连接参数
|
|
/// </summary>
|
|
public class MqttConnectOptions
|
|
{
|
|
public string ServerAddress { get; set; }
|
|
|
|
public int Port { get; set; }
|
|
|
|
public string UserName { get; set; }
|
|
|
|
public string Password { get; set; }
|
|
|
|
public bool EnableTls { get; set; }
|
|
|
|
public SslProtocols Protocols { get; set; }
|
|
|
|
public string CaCert { get; set; }
|
|
|
|
public string ClientCert { get; set; }
|
|
} |