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); }
IMessagePublishPipe <TMessage> CreateFilter() { IPipe <PublishContext <TMessage> > messagePipe = _specification.BuildMessagePipe(); return(new MessagePublishPipe <TMessage>(messagePipe)); }