IMessageSendPipe <TMessage> CreateFilter() { IPipe <SendContext <TMessage> > messagePipe = _specification.BuildMessagePipe(); IMessageSendPipe <TMessage> messageSendPipe = new MessageSendPipe <TMessage>(messagePipe); var adapter = new SendMessageObserverAdapter <TMessage>(_observers); messageSendPipe.ConnectSendMessageObserver(adapter); return(messageSendPipe); }
IMessageSendPipe <TMessage> CreateFilter() { IPipe <SendContext <TMessage> > messagePipe = _specification.BuildMessagePipe(); return(new MessageSendPipe <TMessage>(messagePipe)); }