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

javascript - Parallax scrolling and fixed footer code causing width issues -

sql - can we replace full join with union of left and right join? why not? -

iOS: Performance of reloading UIImage(name:...) -