protected override IMessagePublishTopologyConfigurator CreateMessageTopology <T>(Type type)
        {
            var messageTopology = new ServiceBusMessagePublishTopology <T>(_messageTopology.GetMessageTopology <T>());

            OnMessageTopologyCreated(messageTopology);

            return(messageTopology);
        }
        protected override IMessagePublishTopologyConfigurator CreateMessageTopology <T>(Type type)
        {
            var messageTopology = new ServiceBusMessagePublishTopology <T>(_messageTopology.GetMessageTopology <T>(), this);

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

            ImplementedMessageTypeCache <T> .EnumerateImplementedTypes(connector);

            OnMessageTopologyCreated(messageTopology);

            return(messageTopology);
        }
 public ImplementedMessageTypeConnector(IServiceBusPublishTopologyConfigurator publishTopology,
                                        ServiceBusMessagePublishTopology <TMessage> messagePublishTopologyConfigurator)
 {
     _publishTopology = publishTopology;
     _messagePublishTopologyConfigurator = messagePublishTopologyConfigurator;
 }