public HttpTopologyConfiguration(IHttpTopologyConfiguration topologyConfiguration) { _messageTopology = topologyConfiguration.Message; _sendTopology = topologyConfiguration.Send; _publishTopology = topologyConfiguration.Publish; _consumeTopology = new InMemoryConsumeTopology(topologyConfiguration.Message); }
public HttpTopologyConfiguration(IMessageTopologyConfigurator messageTopology) { _messageTopology = messageTopology; _sendTopology = new SendTopology(); _sendTopology.Connect(new DelegateSendTopologyConfigurationObserver(GlobalTopology.Send)); _publishTopology = new InMemoryPublishTopology(messageTopology); _publishTopology.Connect(new DelegatePublishTopologyConfigurationObserver(GlobalTopology.Publish)); var observer = new PublishToSendTopologyConfigurationObserver(_sendTopology); _publishToSendTopologyHandle = _publishTopology.Connect(observer); _consumeTopology = new InMemoryConsumeTopology(messageTopology); }