antonyvorontsov / RabbitMQ.Client.Core.DependencyInjection

.Net Core library-wrapper of RabbitMQ.Client for Dependency Injection.
MIT License
111 stars 36 forks source link

Make it possible to read Message Headers inside Consumer Handlers #49

Closed astaffer closed 3 years ago

astaffer commented 4 years ago

I have different message types in one queue with single routing key. The message headers have additional information about the type of message. So I want to read message headers inside Handle method in Consumer Handler but for now its not possible it has only string message and routing key.

What do you think?

JanEggers commented 4 years ago

I would also prefere if the handlers would take the raw eventargs from the native client.

antonyvorontsov commented 3 years ago

I have just made a slight change and I will draft a new release v4.3.0 soon. Keep in mind that those changes will break your current code.

I've covered that in changelog https://github.com/AntonyVorontsov/RabbitMQ.Client.Core.DependencyInjection/blob/master/docs/changelog.md#changed and docs https://github.com/AntonyVorontsov/RabbitMQ.Client.Core.DependencyInjection/blob/master/docs/message-consumption.md#synchronous-message-handlers

Best regards, Antony