mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 19:58:57 +08:00
Move server x509 certs into non-uwp compiler flags
This commit is contained in:
@@ -90,11 +90,13 @@ namespace MQTTnet.Server
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !WINDOWS_UWP
|
||||||
public MqttServerOptionsBuilder WithEncryptionCertificate(X509Certificate2 certificate)
|
public MqttServerOptionsBuilder WithEncryptionCertificate(X509Certificate2 certificate)
|
||||||
{
|
{
|
||||||
_options.TlsEndpointOptions.X509Certificate = certificate;
|
_options.TlsEndpointOptions.X509Certificate = certificate;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
public MqttServerOptionsBuilder WithEncryptionSslProtocol(SslProtocols value)
|
public MqttServerOptionsBuilder WithEncryptionSslProtocol(SslProtocols value)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ namespace MQTTnet.Server
|
|||||||
|
|
||||||
public byte[] Certificate { get; set; }
|
public byte[] Certificate { get; set; }
|
||||||
|
|
||||||
|
#if !WINDOWS_UWP
|
||||||
public X509Certificate2 X509Certificate { get; set; }
|
public X509Certificate2 X509Certificate { get; set; }
|
||||||
|
#endif
|
||||||
|
|
||||||
public IMqttServerCertificateCredentials CertificateCredentials { get; set; }
|
public IMqttServerCertificateCredentials CertificateCredentials { get; set; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user