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
@@ -0,0 +1,19 @@
using System;
namespace MQTTnet.Core.Server
{
public static class MqttServerTlsEndpointOptionsExtensions
{
public static int GetPort(this DefaultEndpointOptions options)
{
if (options == null) throw new ArgumentNullException(nameof(options));
if (!options.Port.HasValue)
{
return 1883;
}
return options.Port.Value;
}
}
}