Exemplo n.º 1
0
        public virtual ConnectHandle ConnectConsumePipe <T>(IPipe <ConsumeContext <T> > pipe)
            where T : class
        {
            IPipe <ConsumeContext <T> > messagePipe = _configuration.Consume.Specification.GetMessageSpecification <T>().BuildMessagePipe(pipe);

            return(_consumePipe.ConnectConsumePipe(messagePipe));
        }
        ConnectHandle IConsumePipeConnector.ConnectConsumePipe <T>(IPipe <ConsumeContext <T> > pipe)
        {
            if (_subscribeMessageTopics)
            {
                _topicSubscriptions.AddRange(_messageNameFormatter.GetTopicSubscription(typeof(T)));
            }

            return(_consumePipe.ConnectConsumePipe(pipe));
        }
Exemplo n.º 3
0
        ConnectHandle IConsumePipeConnector.ConnectConsumePipe <T>(IPipe <ConsumeContext <T> > pipe)
        {
            if (_bindMessageExchanges)
            {
                _exchangeBindings.AddRange(typeof(T).GetExchangeBindings(_messageNameFormatter));
            }

            return(_consumePipe.ConnectConsumePipe(pipe));
        }
 public ConnectHandle ConnectConsumePipe <T>(IPipe <ConsumeContext <T> > pipe)
     where T : class
 {
     return(_connector.ConnectConsumePipe(pipe));
 }
Exemplo n.º 5
0
 ConnectHandle IConsumePipeConnector.ConnectConsumePipe <T>(IPipe <ConsumeContext <T> > pipe)
 {
     return(_consumePipe.ConnectConsumePipe(pipe));
 }