Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Consuming from queue when Exchange to Exchange binding set #100

Open
gzres opened this issue Dec 29, 2021 · 0 comments
Open

Consuming from queue when Exchange to Exchange binding set #100

gzres opened this issue Dec 29, 2021 · 0 comments

Comments

@gzres
Copy link

gzres commented Dec 29, 2021

I have such situation:
Message are passed to FirstExchange with some.routing.key
FirstExchange binds some.routing.key to SecondExchange exchange
SecondExchange binds some.routing.key to queue MyQueue.

Using code

var rabbitMqSection = hostContext.Configuration.GetSection("RabbitMq");
var exchangeSection = hostContext.Configuration.GetSection("RabbitMqExchange");

services.AddRabbitMqServices(rabbitMqSection)
                .AddConsumptionExchange("SecondExchange", exchangeSection)
                .AddMessageHandlerTransient<MyMessageHandler>("some.routing.key");

messages from MyQueue are on Unacked state but nothing happens in MyMessageHandler logs in Console are empty.
When I shutdown worker messages return to queue with Ready state.

How to start processing messages from MyQueue inMyMessageHandler?

Im using version 5 of library.
Thanks for help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant