Remove dedicated UWP builds and code.

This commit is contained in:
Christian Kratky
2019-08-11 22:07:57 +02:00
parent 8ad1fb2871
commit 6d0e2c2022
19 changed files with 26 additions and 783 deletions
@@ -95,7 +95,6 @@ namespace MQTTnet.Server
return this;
}
#if !WINDOWS_UWP
public MqttServerOptionsBuilder WithClientCertificate(RemoteCertificateValidationCallback validationCallback = null, bool checkCertificateRevocation = false)
{
_options.TlsEndpointOptions.ClientCertificateRequired = true;
@@ -103,7 +102,6 @@ namespace MQTTnet.Server
_options.TlsEndpointOptions.RemoteCertificateValidationCallback = validationCallback;
return this;
}
#endif
public MqttServerOptionsBuilder WithoutEncryptedEndpoint()
{
@@ -111,14 +109,12 @@ namespace MQTTnet.Server
return this;
}
#if !WINDOWS_UWP
public MqttServerOptionsBuilder WithRemoteCertificateValidationCallback(RemoteCertificateValidationCallback value)
{
_options.TlsEndpointOptions.RemoteCertificateValidationCallback = value;
return this;
}
#endif
public MqttServerOptionsBuilder WithStorage(IMqttServerStorage value)
{
_options.Storage = value;
@@ -12,10 +12,6 @@ namespace MQTTnet.Server
public bool NoDelay { get; set; } = true;
#if WINDOWS_UWP
public int BufferSize { get; set; } = 4096;
#endif
public IPAddress BoundInterNetworkAddress { get; set; } = IPAddress.Any;
public IPAddress BoundInterNetworkV6Address { get; set; } = IPAddress.IPv6Any;
@@ -17,10 +17,8 @@ namespace MQTTnet.Server
public bool ClientCertificateRequired { get; set; }
public bool CheckCertificateRevocation { get; set; }
#if !WINDOWS_UWP
public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; }
#endif
public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls12;
}
}