Skip to content
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(core): extract common logic to base classes #52

Merged
merged 1 commit into from
Nov 24, 2024
Merged

Conversation

engineering87
Copy link
Owner

  • Introduced WartBaseController, consolidating shared functionality from WartController and WartControllerJwt.
  • Simplified both controllers by inheriting from WartBaseController to reduce duplication.
  • Extracted shared logic from WartHub and WartHubJwt into a new WartBaseHub.
  • Both hubs now inherit from WartBaseHub, centralizing SignalR logic.
  • Updated method signatures and reused existing utilities to enhance maintainability.

…and hubs

- Introduced `WartBaseController`, consolidating shared functionality from `WartController` and `WartControllerJwt`.
- Simplified both controllers by inheriting from `WartBaseController` to reduce duplication.
- Extracted shared logic from `WartHub` and `WartHubJwt` into a new `WartBaseHub`.
- Both hubs now inherit from `WartBaseHub`, centralizing SignalR logic.
- Updated method signatures and reused existing utilities to enhance maintainability.

This refactoring reduces duplication, enhances modularity, and simplifies future maintenance.
@engineering87 engineering87 merged commit 947b713 into main Nov 24, 2024
1 of 3 checks passed
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.

1 participant