Skip to content

Add support for routing messages based on attribute decoration #1149

@patchoulish

Description

@patchoulish

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions