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

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -