void IConsumePipeSpecificationObserver.MessageSpecificationCreated <T>(IMessageConsumePipeSpecification <T> specification) { IMessageConsumeTopology <T> messagePublishTopology = _topology.GetMessageTopology <T>(); var topologySpecification = new MessageConsumeTopologyPipeSpecification <T>(messagePublishTopology); specification.AddParentMessageSpecification(topologySpecification); }
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); }
public void AddDelegate(IMessageConsumeTopology <TMessage> configuration) { _delegateTopologies.Add(configuration); }
public void Add(IMessageConsumeTopology <TMessage> consumeTopology) { _topologies.Add(consumeTopology); }
void IConsumeTopologyConfigurator.AddMessageConsumeTopology <T>(IMessageConsumeTopology <T> topology) { IMessageConsumeTopologyConfigurator <T> messageConfiguration = GetMessageTopology <T>(); messageConfiguration.Add(topology); }
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); }