fix: Setup globally RemoteCertificateValidationCallback

This commit is contained in:
Arek 2021-03-31 14:45:55 +02:00
parent de6285466c
commit 9e253e6f05

View File

@ -41,8 +41,8 @@ namespace ArStomp
{
this.certCollection = certCollection;
// TODO find alternative method in case of .netstandard2.0
// ws.Options.RemoteCertificateValidationCallback = RemoteCertificateValidationCallback;
// In .netstandard2.0 - setup validator globally
System.Net.ServicePointManager.ServerCertificateValidationCallback = RemoteCertificateValidationCallback;
}
}