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
Post a Comment