Пример #1
0
        protected override IMessagePublishTopologyConfigurator CreateMessageTopology <T>(Type type)
        {
            var topology = new GrpcMessagePublishTopology <T>(_messageTopology.GetMessageTopology <T>());

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

            ImplementedMessageTypeCache <T> .EnumerateImplementedTypes(connector);

            OnMessageTopologyCreated(topology);

            return(topology);
        }
Пример #2
0
 public ImplementedMessageTypeConnector(IGrpcPublishTopologyConfigurator publishTopology,
                                        GrpcMessagePublishTopology <TMessage> messagePublishTopologyConfigurator)
 {
     _publishTopology = publishTopology;
     _messagePublishTopologyConfigurator = messagePublishTopologyConfigurator;
 }