Skip to content

Conversation

@skeetor
Copy link
Contributor

@skeetor skeetor commented Jul 24, 2025

This PR adds an example that demonstrates how to send messages to different queues, depending on the business logic, or how to send manually to different queues.

_messageCount++;

// In all other cases we publish to the queue dictated by our business logic.
if (_messageCount % 2 == 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm finally working on Motor.NET again and I just noticed that the static code analysis fails.

I don't know if the error is visible to you, but Codacy complains about accessing a static variable from a non-static context. That may be a bit nitpicky, but alternatively, you could just flip a coin to decide which publisher gets the message. That would still show the purpose of the example.

"Name": "ExampleProductionQueue"
}
},
"RabbitMQPublisher": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entry looks obsolete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants