rabbitmq / rabbitmq-stream-dotnet-client

RabbitMQ client for the stream protocol
https://rabbitmq.github.io/rabbitmq-stream-dotnet-client/stable/htmlsingle/index.html
Other
122 stars 41 forks source link

Allow setting Annotations and MessageHeaders #373

Closed hae-andrew-young closed 6 months ago

hae-andrew-young commented 6 months ago

Is your feature request related to a problem? Please describe.

These are internal properties at the moment and we would like to be able to set them to put metadata about the payload in there.

Describe the solution you'd like

see above.

Describe alternatives you've considered

We could set them in ApplicationProperties. Would that be the right approach for this?

Additional context

No response

Gsantomaggio commented 6 months ago

Hi @hae-anyoung Please have a look on: https://www.rabbitmq.com/docs/stream-core-plugin-comparison#interoperabilty

The fieldsAnnotations and MessageHeaders are only for compatibility. This is why the fields are in readonly !

You can use ApplicationProperties to set the information you need.