Exemple #1
0
            IMessagePublishPipe <TMessage> CreateFilter()
            {
                IPipe <PublishContext <TMessage> > messagePipe = _specification.BuildMessagePipe();

                IMessagePublishPipe <TMessage> messagePublishPipe = new MessagePublishPipe <TMessage>(messagePipe);

                var adapter = new PublishMessageObserverAdapter <TMessage>(_observers);

                messagePublishPipe.ConnectPublishMessageObserver(adapter);

                return(messagePublishPipe);
            }
Exemple #2
0
            IMessagePublishPipe <TMessage> CreateFilter()
            {
                IPipe <PublishContext <TMessage> > messagePipe = _specification.BuildMessagePipe();

                return(new MessagePublishPipe <TMessage>(messagePipe));
            }