0

This is a followup to a previous question I asked:

How do I deserialize a dead lettered message when dead lettering changes the type?

The problem I'm having now is that I can't see the extra header info that RabbitMQ adds when a message dead letters.

The extra header info is under "x-death" and they are count, reason, queue, time, exchange and routing-keys. Once EasyNetQ deserializes the message back into my custom message class, this header info seems to vanish. Is there any way to still access it from inside my C# application?

Community
  • 1
  • 1
mrplainswalker
  • 701
  • 4
  • 8
  • 26

1 Answers1

0

Seems there is no way to do it using regular EasyNetQ. But there is an extension for that purpose EasyNetQ.MetaData . As the documentation of it states, it is obviously possible using the advanced EasyNetQ API.

Aleksandar Stojadinovic
  • 4,851
  • 1
  • 34
  • 56