Exemplo n.º 1
0
        public IConsumerContainerBuilder Queue <TMessage>(string contentName, string queueName, string exchangeName = null, string topic = null)
            where TMessage : IBusMessage
        {
            var messageType = typeof(TMessage);
            var consumer    = new ConsumerResolver(contentName, messageType, queueName, exchangeName, topic);

            _consumers.Add(consumer);

            return(this);
        }
 private void AddSubscription(string key, Type handlerType, Type eventType = null)
 {
     _consumers.Add(key, ConsumerResolver.New(handlerType, eventType));
 }