コード例 #1
0
        static SslOption ToSslOption(SslSettings ssl)
        {
            if (ssl == null)
            {
                return(new SslOption());
            }

            var sslOption = new SslOption(ssl.ServerName, ssl.CertPath, ssl.Enabled)
            {
                CertPassphrase         = ssl.CertPassphrase,
                Version                = ssl.Version,
                AcceptablePolicyErrors = ssl.AcceptablePolicyErrors
            };

            return(sslOption);
        }
コード例 #2
0
 /// <summary>
 /// Stores ssl options to be used when connection to RabbitMQ is established
 /// intended to use with single node Rabbitmq setup
 /// </summary>
 public void SetSslSettings(SslSettings sslSettings)
 {
     _connectionManager.SetSslOptions(sslSettings);
 }
コード例 #3
0
 public void SetSslOptions(SslSettings ssl)
 {
     _amqpTcpEndpoints.ForEach(endpoint => { endpoint.Ssl = ToSslOption(ssl); });
 }