Move server x509 certs into non-uwp compiler flags

This commit is contained in:
Ben Origas
2020-04-10 17:16:42 -05:00
parent 28641892f5
commit 88e8691ce0
2 changed files with 4 additions and 0 deletions
@@ -90,11 +90,13 @@ namespace MQTTnet.Server
return this;
}
#if !WINDOWS_UWP
public MqttServerOptionsBuilder WithEncryptionCertificate(X509Certificate2 certificate)
{
_options.TlsEndpointOptions.X509Certificate = certificate;
return this;
}
#endif
public MqttServerOptionsBuilder WithEncryptionSslProtocol(SslProtocols value)
{