コード例 #1
0
        protected override Consumes <TestMessage> GivenConsumer()
        {
            Multiplexor <TestMessage> m = new Multiplexor <TestMessage>();

            firstConsumer  = new TestConsumer <TestMessage>();
            secondConsumer = new TestConsumer <TestMessage>();
            m.AttachConsumer(secondConsumer);
            m.AttachConsumer(firstConsumer);
            return(m);
        }
コード例 #2
0
        protected override Consumes <TestMessage> GivenConsumer()
        {
            Multiplexor <TestMessage> m = new Multiplexor <TestMessage>();

            attachedConsumer = new TestConsumer <TestMessage>();
            removedConsumer  = new TestConsumer <TestMessage>();
            m.AttachConsumer(removedConsumer);
            m.AttachConsumer(attachedConsumer);
            m.RemoveConsumer(removedConsumer);
            return(m);
        }
コード例 #3
0
 public void AttachConsumer(Consumes <T> consumer)
 {
     multiplexor.AttachConsumer(consumer);
 }