コード例 #1
0
            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);
            }
コード例 #2
0
ファイル: SendPipe.cs プロジェクト: youqingz/MassTransit
            IMessageSendPipe <TMessage> CreateFilter()
            {
                IPipe <SendContext <TMessage> > messagePipe = _specification.BuildMessagePipe();

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