-
Hello, Since MassTransit always creates both queue and exchange with the same name, i'm wondering if that's possible to set The reason i need this is i have a quorum queue which cannot be auto-deleted, so i applied Unfortunately, when i do so, i get an exception Could you help me to find a proper solution, please?
Transport: RabbitMQ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
i managed to solve the issue by replacing both lines eventually do the same, that is add "x-expires" argument to the queue but afaik there is a subtle difference:
ℹ️ this is only my assumption based on the piece of code i found in MT:
|
Beta Was this translation helpful? Give feedback.
i managed to solve the issue by replacing
receiveEndpointConfig.SetQueueArgument("x-expires", TimeSpan.FromSeconds(5));
with
receiveEndpointConfig.QueueExpiration = TimeSpan.FromSeconds(5);
both lines eventually do the same, that is add "x-expires" argument to the queue but afaik there is a subtle difference:
AutoDelete = true
that applies it to both exchange and queue (of the same MT endpoint)QueueExpiration
, which basically discards AutoDelete for a queue but still keeps it for exchangeℹ️ this is only my assumption based on the piece of code i found in MT: