Exemplo n.º 1
0
        protected override IMessagePublishTopologyConfigurator CreateMessageTopology <T>(Type type)
        {
            var exchangeTypeSelector = new MessageExchangeTypeSelector <T>(ExchangeTypeSelector);

            var messageTopology = new RabbitMqMessagePublishTopology <T>(_messageTopology.GetMessageTopology <T>(), exchangeTypeSelector);

            var connector = new ImplementedMessageTypeConnector <T>(this, messageTopology);

            ImplementedMessageTypeCache <T> .EnumerateImplementedTypes(connector);

            OnMessageTopologyCreated(messageTopology);

            return(messageTopology);
        }
Exemplo n.º 2
0
 public ImplementedMessageTypeConnector(IRabbitMqPublishTopologyConfigurator publishTopology,
                                        RabbitMqMessagePublishTopology <TMessage> messagePublishTopologyConfigurator)
 {
     _publishTopology = publishTopology;
     _messagePublishTopologyConfigurator = messagePublishTopologyConfigurator;
 }