I have this requirement: “send an email to the user if the message fails to process successfully”
So it though to use CustomRetryPolicy would be the best approach to make sure I send only One email of final faliure. But the emailaddress of the user and some other data I need are in the original message. The “ErrorContext” has Message.Body as a byte array. Question is:
How do I Deserialize the message body into the original Message object. How do I get a hold of the correct deserializer (Xml in this case) ?