-
Notifications
You must be signed in to change notification settings - Fork 593
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
Refactor the class ServiceBusHelper into multiple classes #686
Comments
I can spend some time to (make a start with) this issue. Initially I think it is easier to 'just move code' to separate classes without changing the implementation too much. This should make for smaller PRs that are easier to review. I was also thinking of making a split between 'messaging actions' and 'management actions', though that might be going a bit overboard? |
Agree. Don't bother until there's a need for it. Also, we should try to get away from "helpers". Those end up being classes with mixed concerns. |
If think it would be nice if you split the classes between 'messaging actions' and 'management actions', but it does not need to be 100%. Just where you see you can do it without too much effort. |
* Move Queue management functions to separate class --------- Co-authored-by: supereddie <>
* Move Topic management function to separate class, and added base class for entities * Removed private field * Add Log method to baseclass and make OnCreated/OnDeleted generic * Use auto-property for ServiceBusEntity.Scheme * Re-add async/await to methods that had it originally --------- Co-authored-by: supereddie <>
* Move Rule management functions to separate class * Minor refactor for instantiating new servicebus classes * Remove some unneeded changes * Minor change to using MessagingFactory --------- Co-authored-by: supereddie <>
I have taken a short peek that the current way the messages are send, and a lot of it is via the public This de-coupling could probably be part of the other issue about using the new SDK? That way this issue can be more focused on refactoring itself to make the later de-coupling easier? |
I suggest you go for the easiest (least difficult) path. Small steps are better. |
What @ErikMogensen said. UI coupling is an issue all over the place for SBE just because it's a traditional WinForms app that started as a utility and grew into a monster. My personal take would be whatever makes sense. And if the strategy needs to change, then you change it. |
* Move Relay management functions to separate class * Don't seal internal class --------- Co-authored-by: supereddie <>
To enable migrating the code to use the latest SDK tracks for Relay, Notification hubs, Event hubs and Service bus in a sensible manner, the class ServiceBusHelper should be split into multiple classes, one class for handling each messaging service. It is probably a good idea to have a common, abstract base class for all of them.
This should be done in multiple PRs.
The text was updated successfully, but these errors were encountered: