Custom error queue name when using EasyNetQ for RabbitMQ?

Instead of my unhandled exceptions being thrown into EasyNetQ_Default_Error_Queue , I wondered if there is a way by which I can explicitly specify the name of the error queue to be used for this application, t ALL in this EasyNetQ_Default_Error_Queue ?

I can see how to specify the usual message queue names, but could not find anything about the error queue names.

+4
source share
1 answer

, , IConventions:

https://github.com/EasyNetQ/EasyNetQ/blob/master/Source/EasyNetQ.Tests/ConventionsTests.cs

, , :

var bus = RabbitHutch.CreateBus("host=localhost");
bus.Advanced.Container.Resolve<IConventions>().ErrorExchangeNamingConvention = info => "MyExchangeNaming";
bus.Advanced.Container.Resolve<IConventions>().ErrorQueueNamingConvention = () => "MyErrorQueueNaming";
+7

All Articles