protected virtual IMessagePublishTopologyConfigurator CreateMessageTopology <T>(Type type) where T : class { var messageTopology = new MessagePublishTopology <T>(); var connector = new ImplementedMessageTypeConnector(this); ImplementedMessageTypeCache <T> .EnumerateImplementedTypes(connector); OnMessageTopologyCreated(messageTopology); return(messageTopology); }
public ImplementedMessageTypeConnector(IPublishTopologyConfigurator publishTopology, MessagePublishTopology <TMessage> messagePublishTopologyConfigurator) { _publishTopology = publishTopology; _messagePublishTopologyConfigurator = messagePublishTopologyConfigurator; }