Remove TLS support for UWP servers because Framework does not support it.

This commit is contained in:
Christian Kratky
2017-06-06 14:31:59 +02:00
parent 4b62236638
commit dae5a06734
16 changed files with 63 additions and 87 deletions
@@ -4,16 +4,16 @@ namespace MQTTnet.Core.Server
{
public static class MqttServerOptionsExtensions
{
public static int GetSslEndpointPort(this MqttServerOptions options)
public static int GetTlsEndpointPort(this MqttServerOptions options)
{
if (options == null) throw new ArgumentNullException(nameof(options));
if (!options.SslEndpointOptions.Port.HasValue)
if (!options.TlsEndpointOptions.Port.HasValue)
{
return 8883;
}
return options.SslEndpointOptions.Port.Value;
return options.TlsEndpointOptions.Port.Value;
}
public static int GetDefaultEndpointPort(this MqttServerOptions options)