public ActiveMqConsumerReceiveEndpointContext(IActiveMqHostControl host, IActiveMqReceiveEndpointConfiguration configuration, BrokerTopology brokerTopology) : base(configuration) { _host = host; BrokerTopology = brokerTopology; }
public IActiveMqHostConfiguration CreateHostConfiguration(IActiveMqHostControl host) { var hostConfiguration = new ActiveMqHostConfiguration(this, host); _hosts.Add(hostConfiguration); return(hostConfiguration); }
public ActiveMqHostConfiguration(IActiveMqBusConfiguration busConfiguration, ActiveMqHostSettings hostSettings, IActiveMqHostTopology hostTopology) { _busConfiguration = busConfiguration; _hostSettings = hostSettings; _hostTopology = hostTopology; _host = new ActiveMqHost(this); Description = hostSettings.ToDescription(); }
public void Build(IActiveMqHostControl host) { var builder = new ActiveMqReceiveEndpointBuilder(host, this); ApplySpecifications(builder); var receiveEndpointContext = builder.CreateReceiveEndpointContext(); _sessionConfigurator.UseFilter(new ConfigureTopologyFilter <ReceiveSettings>(_settings, receiveEndpointContext.BrokerTopology)); IAgent consumerAgent; if (_hostConfiguration.DeployTopologyOnly) { var transportReadyFilter = new TransportReadyFilter <SessionContext>(receiveEndpointContext); _sessionConfigurator.UseFilter(transportReadyFilter); consumerAgent = transportReadyFilter; } else { var consumerFilter = new ActiveMqConsumerFilter(receiveEndpointContext); _sessionConfigurator.UseFilter(consumerFilter); consumerAgent = consumerFilter; } IFilter <ConnectionContext> sessionFilter = new ReceiveSessionFilter(_sessionConfigurator.Build(), host); _connectionConfigurator.UseFilter(sessionFilter); var transport = new ActiveMqReceiveTransport(host, _settings, _connectionConfigurator.Build(), receiveEndpointContext); transport.Add(consumerAgent); var receiveEndpoint = new ReceiveEndpoint(transport, receiveEndpointContext); var queueName = _settings.EntityName ?? NewId.Next().ToString(FormatUtil.Formatter); host.AddReceiveEndpoint(queueName, receiveEndpoint); ReceiveEndpoint = receiveEndpoint; }
public ActiveMqReceiveEndpointBuilder(IActiveMqHostControl host, IActiveMqReceiveEndpointConfiguration configuration) : base(configuration) { _host = host; _configuration = configuration; }
public PublishTransportProvider(IActiveMqHostControl host) { _host = host; }
public ActiveMqHostConfiguration(IActiveMqBusConfiguration busConfiguration, IActiveMqHostControl host) { _host = host; _busConfiguration = busConfiguration; }
public PublishTransportProvider(IActiveMqHostControl host, IActiveMqPublishTopology publishTopology) { _publishTopology = publishTopology; _host = host; }
public ActiveMqSendTransportProvider(IActiveMqHostControl host) { _host = host; }