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

Add support for routing messages based on attribute decoration #1149

Open
patchoulish opened this issue Nov 23, 2024 · 2 comments · Fixed by #1150
Open

Add support for routing messages based on attribute decoration #1149

patchoulish opened this issue Nov 23, 2024 · 2 comments · Fixed by #1150
Labels
enhancement New feature or request

Comments

@patchoulish
Copy link
Contributor

patchoulish commented Nov 23, 2024

Is your feature request related to a problem? Please describe.
I'd like to decorate messages I want to wind up in a certain queue with an attribute, rather than use a marker interface.

Describe the solution you'd like
Something like the following

options
    .Publish(rule =>
    {
        rule.MessagesDecoratedWith<MySpecificQueueAttribute>()
            .ToPostgresqlQueue("my-specific-queue");
    });

Describe alternatives you've considered
Marker interfaces offer essentially the same functionality as what I'm looking for.

@jeremydmiller
Copy link
Member

@patchoulish The associated PR needs an integration test that actually uses the publishing rule up above. I think I want you to hold off on the implementation anyway. I think there's probably a more usable way to accomplish this.

@patchoulish
Copy link
Contributor Author

@jeremydmiller Sure thing! I can write an integration test and some documentation for the existing solution, or re-implement the feature differently and do the same once you've thought on it more. Just give me a heads up.

@jeremydmiller jeremydmiller added the enhancement New feature or request label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants