コード例 #1
0
        protected override IMessagePublishTopologyConfigurator CreateMessageTopology <T>(Type type)
        {
            var topology = new InMemoryMessagePublishTopology <T>(_messageTopology.GetMessageTopology <T>());

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

            ImplementedMessageTypeCache <T> .EnumerateImplementedTypes(connector);

            OnMessageTopologyCreated(topology);

            return(topology);
        }
コード例 #2
0
 public ImplementedMessageTypeConnector(IInMemoryPublishTopologyConfigurator publishTopology,
                                        InMemoryMessagePublishTopology <TMessage> messagePublishTopologyConfigurator)
 {
     _publishTopology = publishTopology;
     _messagePublishTopologyConfigurator = messagePublishTopologyConfigurator;
 }