-
Notifications
You must be signed in to change notification settings - Fork 1
Add new PublishAsync to send multiple messages in batches #5
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
Conversation
270af07
to
3d0a46b
Compare
@TomMalow the build fails due to incorrect XML code documentation |
3d0a46b
to
53492e3
Compare
…tches The new method will publish multiple messages in a batch. If the messages exceed the batch size, the current batch will be sent and remaining will be send in a new batch. Multiple batches can be sent The method will throw an exception if a single message exceeds the total allowed size of a single batch. Does not rollback any previous sent messages.
53492e3
to
b003eea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
|
||
var busMessage = CreateServiceBusMessage( | ||
sessionId, | ||
JsonSerializer.Serialize(message), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this pull request should go in but I also noticed that we are very opinionated about how the messages are serialized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree and have intention to separate this in a later PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was also the main reason why I could not use this package initially as I have customer converters
Do you feel like adding usage examples in the README @TomMalow? Otherwise, I can do that in a separate pull request |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
The new method will publish multiple messages in a batch. If the messages exceed the batch size, the current batch will be sent and remaining will be send in a new batch. Multiple batches can be sent
The method will throw an exception if a single message exceeds the total allowed size of a single batch. Does not rollback any previous sent messages.