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 -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -