GlobalTopology() { _send = new SendTopology(); _send.AddConvention(new CorrelationIdSendTopologyConvention()); _publish = new PublishTopology(); var observer = new PublishToSendTopologyConfigurationObserver(_send); _publishToSendHandle = _publish.Connect(observer); }
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); }
public AmazonSqsTopologyConfiguration(IMessageTopologyConfigurator messageTopology) { _messageTopology = messageTopology; _sendTopology = new AmazonSqsSendTopology(AmazonSqsEntityNameValidator.Validator); _sendTopology.ConnectSendTopologyConfigurationObserver(new DelegateSendTopologyConfigurationObserver(GlobalTopology.Send)); _publishTopology = new AmazonSqsPublishTopology(messageTopology); _publishTopology.ConnectPublishTopologyConfigurationObserver(new DelegatePublishTopologyConfigurationObserver(GlobalTopology.Publish)); var observer = new PublishToSendTopologyConfigurationObserver(_sendTopology); _publishTopology.ConnectPublishTopologyConfigurationObserver(observer); _consumeTopology = new AmazonSqsConsumeTopology(messageTopology, _publishTopology); }
public ActiveMqTopologyConfiguration(IMessageTopologyConfigurator messageTopology) { _messageTopology = messageTopology; _sendTopology = new ActiveMqSendTopology(); _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); }
public RabbitMqTopologyConfiguration(IMessageTopologyConfigurator messageTopology) { _messageTopology = messageTopology; _sendTopology = new RabbitMqSendTopology(RabbitMqEntityNameValidator.Validator); _sendTopology.Connect(new DelegateSendTopologyConfigurationObserver(GlobalTopology.Send)); _sendTopology.AddConvention(new RoutingKeySendTopologyConvention()); _publishTopology = new RabbitMqPublishTopology(messageTopology); _publishTopology.Connect(new DelegatePublishTopologyConfigurationObserver(GlobalTopology.Publish)); var observer = new PublishToSendTopologyConfigurationObserver(_sendTopology); _publishTopology.Connect(observer); _consumeTopology = new RabbitMqConsumeTopology(messageTopology, _publishTopology); }
public GrpcTopologyConfiguration(IMessageTopologyConfigurator messageTopology) { _messageTopology = messageTopology; _sendTopology = new SendTopology(); _sendTopology.ConnectSendTopologyConfigurationObserver(new DelegateSendTopologyConfigurationObserver(GlobalTopology.Send)); _sendTopology.TryAddConvention(new RoutingKeySendTopologyConvention()); _publishTopology = new GrpcPublishTopology(messageTopology); _publishTopology.ConnectPublishTopologyConfigurationObserver(new DelegatePublishTopologyConfigurationObserver(GlobalTopology.Publish)); var observer = new PublishToSendTopologyConfigurationObserver(_sendTopology); _publishTopology.ConnectPublishTopologyConfigurationObserver(observer); _consumeTopology = new GrpcConsumeTopology(messageTopology, _publishTopology); }
public ServiceBusTopologyConfiguration(IMessageTopologyConfigurator messageTopology) { _messageTopology = messageTopology; _sendTopology = new ServiceBusSendTopology(); _sendTopology.Connect(new DelegateSendTopologyConfigurationObserver(GlobalTopology.Send)); _sendTopology.AddConvention(new SessionIdSendTopologyConvention()); _sendTopology.AddConvention(new PartitionKeySendTopologyConvention()); _publishTopology = new ServiceBusPublishTopology(messageTopology); _publishTopology.Connect(new DelegatePublishTopologyConfigurationObserver(GlobalTopology.Publish)); var observer = new PublishToSendTopologyConfigurationObserver(_sendTopology); _publishTopology.Connect(observer); _consumeTopology = new ServiceBusConsumeTopology(messageTopology, _publishTopology); }