Search code examples
rabbitmqeasynetq

Routing Dead-Lettered Messages


Is there a way in EasyNetQ to set the routing key [x-dead-letter-routing-key] argument when creating a Queue? (as far as I can see you can only set a DeadLetterExchange.)

IQueue updateCacheQueue = advancedBus.QueueDeclare(name: "UpdateCache", deadLetterExchange: "UpdatesDeadLetter");

Solution

  • I Added another parameter to the QueueDeclare method and created a pull request, and you can set it after version 0.40.6.355