public void MessageSpecificationCreated <T>(IMessageConsumePipeSpecification <T> specification)
            where T : class
        {
            IMessageConsumePipeSpecification <T> messageSpecification = _specification.GetMessageSpecification <T>();

            specification.AddParentMessageSpecification(messageSpecification);
        }
예제 #2
0
        void IConsumePipeSpecificationObserver.MessageSpecificationCreated <T>(IMessageConsumePipeSpecification <T> specification)
        {
            IMessageConsumeTopology <T> messagePublishTopology = _topology.GetMessageTopology <T>();

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

            specification.AddParentMessageSpecification(topologySpecification);
        }