浏览代码

Fix build issue with UWP

release/3.x.x
Craig Lutgen 5 年前
父节点
当前提交
9d63500f95
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      Source/MQTTnet/Server/MqttServerOptionsBuilder.cs

+ 3
- 1
Source/MQTTnet/Server/MqttServerOptionsBuilder.cs 查看文件

@@ -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()
{


正在加载...
取消
保存