Example added to illustrate how to publish to multiple different queues.#1346
Open
skeetor wants to merge 1 commit intoGDATASoftwareAG:masterfrom
Open
Example added to illustrate how to publish to multiple different queues.#1346skeetor wants to merge 1 commit intoGDATASoftwareAG:masterfrom
skeetor wants to merge 1 commit intoGDATASoftwareAG:masterfrom
Conversation
rngcntr
reviewed
Oct 15, 2025
| _messageCount++; | ||
|
|
||
| // In all other cases we publish to the queue dictated by our business logic. | ||
| if (_messageCount % 2 == 0) |
Collaborator
There was a problem hiding this comment.
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.
rngcntr
reviewed
Oct 15, 2025
| "Name": "ExampleProductionQueue" | ||
| } | ||
| }, | ||
| "RabbitMQPublisher": { |
Collaborator
There was a problem hiding this comment.
This entry looks obsolete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.