Example #1
0
 public void InstallCaCertificates(IEnumerable <X509Certificate2> certs, ITransportSettings transportSettings)
 {
     if (transportSettings.GetTransportType() == TransportType.Amqp_WebSocket_Only ||
         transportSettings.GetTransportType() == TransportType.Amqp_Tcp_Only)
     {
         transportSettings.SetupCertificateValidation(certs.First());
     }
     else
     {
         this.InstallTrustedCertificates(certs, StoreName.Root);
     }
 }
Example #2
0
 public void InstallCaCertificates(IEnumerable <X509Certificate2> certs, ITransportSettings transportSettings) =>
 transportSettings.SetupCertificateValidation(certs.First());