Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable message header (and possibly payload) transformation #500

Open
SzymonPobiega opened this issue Aug 22, 2024 · 1 comment
Open

Enable message header (and possibly payload) transformation #500

SzymonPobiega opened this issue Aug 22, 2024 · 1 comment
Labels
Feature New feature or request

Comments

@SzymonPobiega
Copy link
Member

Describe the feature.

Is your feature related to a problem? Please describe.

In cases when bridged messages are generated by a third-party non-NServiceBus system there might be a need to transform them on the bridge so that they can be properly consumed by an NServiceBus endpoint on the other side of the bridge

Describe the requested feature

Add an extensibility point that allows transformation of messages going through the bridge. The extensibility point would be in form of a callback or an interface method that takes as input the MessageContext from the transport and returns the TransportMessage to be send to the transport on the other side.

Describe alternatives you've considered

The alternative is to use the message mutators to transform the messages in the destination endpoint.

Additional Context

No response

@SzymonPobiega SzymonPobiega added the Feature New feature or request label Aug 22, 2024
@timbussmann
Copy link

To add an example where this would be useful: RabbitMQ messages might have message properties (maybe from 3rd party senders) which by default aren't forwarded when using the bridge as the bridge only forwards message headers. On a regular endpoint, the properties can be accessed using the native RabbitMQ message available in the message context, however this isn't possible with the bridge as there is no extension point that gives users access to the message context of the incoming/outgoing messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants