protected virtual Pipe VisitMessageConsumer(MessageConsumerSegment messageConsumer) { if (messageConsumer == null) { return(null); } return(messageConsumer); }
protected override Pipe VisitMessageConsumer(MessageConsumerSegment messageConsumer) { _lastNodeVertex = GetSink(messageConsumer.GetHashCode(), () => "Consumer", typeof(MessageConsumerSegment), messageConsumer.MessageType); if (_stack.Count > 0) { _edges.Add(new Edge(_stack.Peek(), _lastNodeVertex, _lastNodeVertex.TargetType.Name)); } return(Recurse(() => base.VisitMessageConsumer(messageConsumer))); }
public void Should_contain_all_nodes() { MessageConsumerSegment consumer = PipeSegment.Consumer <SomethingHappenedEvent>(x => { }); EndSegment end = PipeSegment.End <SomethingHappenedEvent>(); RecipientListSegment recipientList = PipeSegment.RecipientList <SomethingHappenedEvent>(new Pipe[] { consumer, end }); FilterSegment filter = PipeSegment.Filter <object>(recipientList); Pipe input = PipeSegment.Input(filter); //var generator = new PipelineGraphGenerator(); //string filename = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "graph.png"); //generator.SaveGraphToFile(input.GetGraphData(), 2560, 1920, filename); PipelineDebugVisualizer.TestShowVisualizer(input.GetGraphData()); }
protected override Pipe VisitMessageConsumer(MessageConsumerSegment messageConsumer) { WriteLine(messageConsumer, "Consumer Type = " + messageConsumer.ConsumerType); return(base.VisitMessageConsumer(messageConsumer)); }
protected override Pipe VisitMessageConsumer(MessageConsumerSegment messageConsumer) { _lastNodeVertex = GetSink(messageConsumer.GetHashCode(), () => "Consumer", typeof(MessageConsumerSegment), messageConsumer.MessageType); if (_stack.Count > 0) _edges.Add(new Edge(_stack.Peek(), _lastNodeVertex, _lastNodeVertex.TargetType.Name)); return Recurse(() => base.VisitMessageConsumer(messageConsumer)); }
protected virtual Pipe VisitMessageConsumer(MessageConsumerSegment messageConsumer) { if (messageConsumer == null) return null; return messageConsumer; }