mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 19:58:57 +08:00
Fix breaking changes.
This commit is contained in:
@@ -4,21 +4,16 @@ using MQTTnet.Core.Protocol;
|
||||
|
||||
namespace MQTTnet.Core.Server
|
||||
{
|
||||
public class MqttServerOptions
|
||||
public sealed class MqttServerOptions
|
||||
{
|
||||
public int Port { get; set; } = 1883;
|
||||
public DefaultEndpointOptions DefaultEndpointOptions { get; } = new DefaultEndpointOptions();
|
||||
|
||||
public SslEndpointOptions SslEndpointOptions { get; } = new SslEndpointOptions();
|
||||
|
||||
public int ConnectionBacklog { get; set; } = 10;
|
||||
|
||||
public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(10);
|
||||
|
||||
public Func<MqttConnectPacket, MqttConnectReturnCode> ConnectionValidator { get; set; }
|
||||
|
||||
public bool UseSSL = false;
|
||||
|
||||
/// <summary>
|
||||
/// The path to the X509 SSL certificate.
|
||||
/// </summary>
|
||||
public string CertificatePath = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user