コード例 #1
0
        void IConsumePipeSpecificationObserver.MessageSpecificationCreated <T>(IMessageConsumePipeSpecification <T> specification)
        {
            IMessageConsumeTopology <T> messagePublishTopology = _topology.GetMessageTopology <T>();

            var topologySpecification = new MessageConsumeTopologyPipeSpecification <T>(messagePublishTopology);

            specification.AddParentMessageSpecification(topologySpecification);
        }
コード例 #2
0
        public bool TryGetConsumeTopology(out IMessageConsumeTopology <TMessage> topology)
        {
            if (Count > 0)
            {
                IMessageInitializer <TMessage> initializer = Build();

                topology = new MessageDataMessageConsumeTopology <TMessage>(initializer);
                return(true);
            }

            topology = default;
            return(false);
        }
コード例 #3
0
 public void AddDelegate(IMessageConsumeTopology <TMessage> configuration)
 {
     _delegateTopologies.Add(configuration);
 }
コード例 #4
0
 public void Add(IMessageConsumeTopology <TMessage> consumeTopology)
 {
     _topologies.Add(consumeTopology);
 }
コード例 #5
0
        void IConsumeTopologyConfigurator.AddMessageConsumeTopology <T>(IMessageConsumeTopology <T> topology)
        {
            IMessageConsumeTopologyConfigurator <T> messageConfiguration = GetMessageTopology <T>();

            messageConfiguration.Add(topology);
        }
コード例 #6
0
 public MessageConsumeTopologyPipeSpecification(IMessageConsumeTopology <TMessage> messageConsumeTopology)
 {
     _messageConsumeTopology = messageConsumeTopology;
 }
        bool IMessageConsumeTopologyConvention <TMessage> .TryGetMessageConsumeTopology(out IMessageConsumeTopology <TMessage> messageConsumeTopology)
        {
            var specification = new GetMessageDataTransformSpecification <TMessage>(_repository);

            if (specification.TryGetConsumeTopology(out messageConsumeTopology))
            {
                return(true);
            }

            messageConsumeTopology = null;
            return(false);
        }