EasyNetQ.MetaData | Get access to AMQP message meta | Pub Sub library
kandi X-RAY | EasyNetQ.MetaData Summary
kandi X-RAY | EasyNetQ.MetaData Summary
An extension to EasyNetQ that allows you to utilize message headers and properties, without resorting to AdvancedBus! Even works with AutoSubscriber.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of EasyNetQ.MetaData
EasyNetQ.MetaData Key Features
EasyNetQ.MetaData Examples and Code Snippets
Community Discussions
Trending Discussions on EasyNetQ.MetaData
QUESTION
I am using EasyNetQ and need to retry failed messages on the original queue. The problem is: even though I successfully increment the TriedCount variable (in the body of every msg), when EasyNetQ publishes the message to the default error queue after an exception, the updated TriedCount is not in the msg! Presumably because it just dumps the original message to the error queue without the consumer's changes.
The updated TriedCount works for in-process republishes, but not when republished through EasyNetQ Hosepipe or EasyNetQ Management Client. The text files Hosepipe generates do not have the TriedCount updated.
...ANSWER
Answered 2019-Mar-15 at 08:50Just in case it helps someone else, I eventually implemented my own IErrorMessageSerializer (as opposed to implementing the whole IConsumerErrorStrategy, which seemed like an overkill). The reason I am adding the retry info in the body (instead of the header) is that EasyNetQ doesn't handle complex types in the header (not out-of-the-box anyway). So, using a dictionary gives more control for different consumers. I register the custom serializer at the time of creating the bus like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install EasyNetQ.MetaData
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page