public ActiveMqTopologyConfiguration(IActiveMqTopologyConfiguration topologyConfiguration) { _messageTopology = topologyConfiguration.Message; _sendTopology = topologyConfiguration.Send; _publishTopology = topologyConfiguration.Publish; _consumeTopology = new ActiveMqConsumeTopology(topologyConfiguration.Message, topologyConfiguration.Publish); }
public ActiveMqTopologyConfiguration(IMessageTopologyConfigurator messageTopology) { _messageTopology = messageTopology; _sendTopology = new ActiveMqSendTopology(ActiveMqEntityNameValidator.Validator); _sendTopology.ConnectSendTopologyConfigurationObserver(new DelegateSendTopologyConfigurationObserver(GlobalTopology.Send)); _publishTopology = new ActiveMqPublishTopology(messageTopology); _publishTopology.ConnectPublishTopologyConfigurationObserver(new DelegatePublishTopologyConfigurationObserver(GlobalTopology.Publish)); var observer = new PublishToSendTopologyConfigurationObserver(_sendTopology); _publishTopology.ConnectPublishTopologyConfigurationObserver(observer); _consumeTopology = new ActiveMqConsumeTopology(messageTopology, _publishTopology); }