Inheritance: RabbitMqHostSettings
        public RabbitMqHostConfigurator(Uri hostAddress, string connectionName = null)
        {
            _settings = hostAddress.GetConfigurationHostSettings();

            _settings.ClientProvidedName = connectionName;
            _settings.VirtualHost = GetVirtualHost(hostAddress);
        }
Beispiel #2
0
        public RabbitMqHostConfigurator(Uri hostAddress, string connectionName = null)
        {
            _settings = hostAddress.GetConfigurationHostSettings();

            _settings.ClientProvidedName = connectionName;
            _settings.VirtualHost        = GetVirtualHost(hostAddress);
        }
 public RabbitMqHostConfigurator(string host, string virtualHost, ushort port = 5672, string connectionName = null)
 {
     _settings = new ConfigurationHostSettings
     {
         Host = host,
         Port = port,
         VirtualHost = virtualHost,
         ClientProvidedName = connectionName
     };
 }
Beispiel #4
0
 public RabbitMqHostConfigurator(string host, string virtualHost, ushort port = 5672, string connectionName = null)
 {
     _settings = new ConfigurationHostSettings
     {
         Host               = host,
         Port               = port,
         VirtualHost        = virtualHost,
         ClientProvidedName = connectionName
     };
 }
        public RabbitMqHostConfigurator(string host, string virtualHost, ushort port = 5672, string connectionName = null)
        {
            _settings = new ConfigurationHostSettings
            {
                Host        = host,
                Port        = port,
                VirtualHost = virtualHost,
            };

            if (!string.IsNullOrEmpty(connectionName))
            {
                _settings.ClientProvidedName = connectionName;
            }
        }
Beispiel #6
0
        public RabbitMqHostConfigurator(Uri hostAddress, string connectionName = null)
        {
            _settings = hostAddress.GetConfigurationHostSettings();

            if (_settings.Port == 5671)
            {
                UseSsl(s =>
                {
                    s.Protocol = SslProtocols.Tls12;
                });
            }

            _settings.ClientProvidedName = connectionName;
            _settings.VirtualHost        = GetVirtualHost(hostAddress);
        }
Beispiel #7
0
        public RabbitMqHostConfigurator(Uri hostAddress, string connectionName = null)
        {
            _settings = hostAddress.GetConfigurationHostSettings();

            if (_settings.Port == 5671)
            {
                UseSsl(s =>
                {
                    s.Protocol = SslProtocols.Tls12;
                });
            }

            _settings.VirtualHost = Uri.UnescapeDataString(GetVirtualHost(hostAddress));

            if (!string.IsNullOrEmpty(connectionName))
            {
                _settings.ClientProvidedName = connectionName;
            }
        }