Ver a proveniência

Fix build issue with UWP

release/3.x.x
Craig Lutgen há 5 anos
ascendente
cometimento
9d63500f95
1 ficheiros alterados com 3 adições e 1 eliminações
  1. +3
    -1
      Source/MQTTnet/Server/MqttServerOptionsBuilder.cs

+ 3
- 1
Source/MQTTnet/Server/MqttServerOptionsBuilder.cs Ver ficheiro

@@ -95,13 +95,15 @@ namespace MQTTnet.Server
return this;
}

#if !WINDOWS_UWP
public MqttServerOptionsBuilder WithClientCertificate(RemoteCertificateValidationCallback validationCallback = null, bool checkCertificateRevocation = false)
{
_options.TlsEndpointOptions.ClientCertificateRequired = true;
_options.TlsEndpointOptions.CheckCertificateRevocation = checkCertificateRevocation;
_options.TlsEndpointOptions.CertificateValidationCallback = validationCallback;
_options.TlsEndpointOptions.RemoteCertificateValidationCallback = validationCallback;
return this;
}
#endif

public MqttServerOptionsBuilder WithoutEncryptedEndpoint()
{


Carregando…
Cancelar
Guardar