Exemple #1
0
        public AmazonSqsTopologyConfiguration(IAmazonSqsTopologyConfiguration topologyConfiguration)
        {
            _messageTopology = topologyConfiguration.Message;
            _sendTopology    = topologyConfiguration.Send;
            _publishTopology = topologyConfiguration.Publish;

            _consumeTopology = new AmazonSqsConsumeTopology(topologyConfiguration.Message, topologyConfiguration.Publish);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public ImplementedMessageTypeConnector(IAmazonSqsPublishTopologyConfigurator publishTopology,
                                        AmazonSqsMessagePublishTopology <TMessage> messagePublishTopologyConfigurator)
 {
     _publishTopology = publishTopology;
     _messagePublishTopologyConfigurator = messagePublishTopologyConfigurator;
 }