public ActiveMqReceiveEndpointConfiguration(IActiveMqHostConfiguration hostConfiguration, string queueName,
                                                    IActiveMqEndpointConfiguration endpointConfiguration)
            : this(hostConfiguration, endpointConfiguration)
        {
            BindMessageTopics = true;

            _settings = new QueueReceiveSettings(queueName, true, false);
        }
        public ActiveMqBusConfiguration(IActiveMqTopologyConfiguration topologyConfiguration)
            : base(topologyConfiguration)
        {
            _hostConfiguration        = new ActiveMqHostConfiguration(this, topologyConfiguration);
            _busEndpointConfiguration = CreateEndpointConfiguration();

            _busObservers = new BusObservable();
        }
        public ActiveMqBusFactoryConfigurator(IActiveMqBusConfiguration configuration, IActiveMqEndpointConfiguration busEndpointConfiguration)
            : base(configuration, busEndpointConfiguration)
        {
            _configuration            = configuration;
            _busEndpointConfiguration = busEndpointConfiguration;

            var busQueueName = _configuration.Topology.Consume.CreateTemporaryQueueName("bus");

            _settings = new QueueReceiveSettings(busQueueName, false, true);
        }
        ActiveMqReceiveEndpointConfiguration(IActiveMqHostConfiguration hostConfiguration, IActiveMqEndpointConfiguration endpointConfiguration)
            : base(endpointConfiguration)
        {
            _hostConfiguration     = hostConfiguration;
            _endpointConfiguration = endpointConfiguration;

            _connectionConfigurator = new PipeConfigurator <ConnectionContext>();
            _sessionConfigurator    = new PipeConfigurator <SessionContext>();

            HostAddress = hostConfiguration.Host.Address;

            _inputAddress = new Lazy <Uri>(FormatInputAddress);
        }
Exemplo n.º 5
0
        public ActiveMqReceiveEndpointConfiguration(IActiveMqHostConfiguration hostConfiguration, QueueReceiveSettings settings,
                                                    IActiveMqEndpointConfiguration endpointConfiguration)
            : base(hostConfiguration, endpointConfiguration)
        {
            _settings = settings;

            _hostConfiguration     = hostConfiguration;
            _endpointConfiguration = endpointConfiguration;

            _connectionConfigurator = new PipeConfigurator <ConnectionContext>();
            _sessionConfigurator    = new PipeConfigurator <SessionContext>();

            _inputAddress = new Lazy <Uri>(FormatInputAddress);
        }
Exemplo n.º 6
0
 public QueueReceiveSettings(IActiveMqEndpointConfiguration configuration, string queueName, bool durable, bool autoDelete)
     : base(queueName, durable, autoDelete)
 {
     _configuration = configuration;
 }
Exemplo n.º 7
0
        public IActiveMqReceiveEndpointConfiguration CreateReceiveEndpointConfiguration(QueueReceiveSettings settings,
                                                                                        IActiveMqEndpointConfiguration endpointConfiguration)
        {
            if (_hosts.Count == 0)
            {
                throw new ConfigurationException("At least one host must be configured");
            }

            var configuration = new ActiveMqReceiveEndpointConfiguration(_hosts[0], settings, endpointConfiguration);

            return(configuration);
        }
 public ActiveMqReceiveEndpointConfiguration(IActiveMqHostConfiguration hostConfiguration, QueueReceiveSettings settings,
                                             IActiveMqEndpointConfiguration endpointConfiguration)
     : this(hostConfiguration, endpointConfiguration)
 {
     _settings = settings;
 }