예제 #1
0
        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);
        }
예제 #2
0
 public ImplementedMessageTypeConnector(IPublishTopologyConfigurator publishTopology,
                                        MessagePublishTopology <TMessage> messagePublishTopologyConfigurator)
 {
     _publishTopology = publishTopology;
     _messagePublishTopologyConfigurator = messagePublishTopologyConfigurator;
 }