Ejemplo n.º 1
0
        public RabbitMqBusConfiguration(IRabbitMqTopologyConfiguration topologyConfiguration)
            : base(topologyConfiguration)
        {
            HostConfiguration        = new RabbitMqHostConfiguration(this, topologyConfiguration);
            BusEndpointConfiguration = CreateEndpointConfiguration();

            _busObservers = new BusObservable();
        }
Ejemplo n.º 2
0
        public IRabbitMqHostConfiguration CreateHostConfiguration(IRabbitMqHostControl host)
        {
            var hostConfiguration = new RabbitMqHostConfiguration(this, host);

            _hosts.Add(hostConfiguration);

            return(hostConfiguration);
        }
Ejemplo n.º 3
0
        public IRabbitMqHostConfiguration CreateHostConfiguration(RabbitMqHostSettings hostSettings)
        {
            var hostTopology = new RabbitMqHostTopology(_exchangeTypeSelector, _messageNameFormatter, hostSettings.HostAddress, Topology);

            var hostConfiguration = new RabbitMqHostConfiguration(this, hostSettings, hostTopology);

            _hosts.Add(hostConfiguration);

            return(hostConfiguration);
        }