コード例 #1
0
        protected virtual Pipe VisitMessageConsumer(MessageConsumerSegment messageConsumer)
        {
            if (messageConsumer == null)
            {
                return(null);
            }

            return(messageConsumer);
        }
コード例 #2
0
        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)));
        }
コード例 #3
0
        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());
        }
コード例 #4
0
        protected override Pipe VisitMessageConsumer(MessageConsumerSegment messageConsumer)
        {
            WriteLine(messageConsumer, "Consumer Type = " + messageConsumer.ConsumerType);

            return(base.VisitMessageConsumer(messageConsumer));
        }
コード例 #5
0
        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));
        }
コード例 #6
0
ファイル: AbstractPipeVisitor.cs プロジェクト: daffers/Magnum
        protected virtual Pipe VisitMessageConsumer(MessageConsumerSegment messageConsumer)
        {
            if (messageConsumer == null)
                return null;

            return messageConsumer;
        }