I am using cloudx frameworks publisher subscriber mechanism for processing messages through azure topic/subscription.
Some of the expired messages are moved to DeadletterQueue. When i try to read those deadletter messages using MessageReceiver, i get serialization error.
var msgReceiver = msgFactory.CreateMessageReceiver(deadletterPath);
BrokeredMessage msg = msgReceiver.Peek();
UserExitMessage deadLetterObject = msg.GetBody<UserExitMessage>();
It seems cloudfx frameworks modify ( or encode ) the messages and hence they are not able to deserialize properly. Does anybody knows mechanism to read deadletters using cloudfx.
Any help would be appreciated as i am stuck from quite some time.
P.S. - This issue occurs only with messages there are published using cloudfx, for deadletter messages that were send using TopicClient code works fine.
Some of the expired messages are moved to DeadletterQueue. When i try to read those deadletter messages using MessageReceiver, i get serialization error.
var msgReceiver = msgFactory.CreateMessageReceiver(deadletterPath);
BrokeredMessage msg = msgReceiver.Peek();
UserExitMessage deadLetterObject = msg.GetBody<UserExitMessage>();
It seems cloudfx frameworks modify ( or encode ) the messages and hence they are not able to deserialize properly. Does anybody knows mechanism to read deadletters using cloudfx.
Any help would be appreciated as i am stuck from quite some time.
P.S. - This issue occurs only with messages there are published using cloudfx, for deadletter messages that were send using TopicClient code works fine.