c# - Get MassTransit message retries amount -


i'm using masstransit+rabbitmq. 1 of consumers implements retry policy , i'm wondering if there way message's retries amout once message in error queue?

also know how mt counting retries because didn't namage find related information in message's headers using rabbitmq server.

thanks.

you can, in consumer, use following method retry retry attempt number.

consumecontext.getretryattempt() 

it should return > 0 if retry.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -