Hi, we have a strange one; after a week or so in the wild, we start getting reports of an MQ-based feature “Stopping working”. I then look in Redis, and in the key space:
Dictariory'2:inq
there are lots of Invalid Cast Exceptions - namely:
"message": "Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' to type 'SendEmailRequest'.",
A restart of the app pool stops this happening until the next time it happens a few days later. Any ideas?
HttpResult doesn’t implement/inherit Dictionary but the MQ message handlers does expect a response DTO not a HttpResult. I’ve changed it to unwrap it in this commit to see if it resolves it.
Will let you know after it passes CI and is published on MyGet.