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 simplify polling on generated componenents #385

Merged
merged 5 commits into from
Feb 17, 2025

Conversation

PTKu
Copy link
Contributor

@PTKu PTKu commented Feb 14, 2025

This pull request includes significant changes to the build and polling mechanisms in the project. The most important changes involve the removal of the DoPublishOnly parameter and its related logic, updates to the polling mechanism in the Blazor components, and modifications to the GitHub Actions workflow.

Build and Publishing Updates:

  • Removed the DoPublishOnly parameter and its associated logic from the BuildParameters class and various tasks in cake/Program.cs [1] [2] [3] [4] [5] [6].
  • Updated the GitHub Actions workflow to conditionally run the cake script and modified the build command to include testing and packaging [1] [2].

Polling Mechanism Updates:

  • Changed RenderableComponentBase and RenderableComplexComponentBase classes to be abstract and refactored the polling methods, including the addition of a ConfigurePolling method and renaming RemovePolledElements to StopPolling [1] [2] [3] [4] [5] [6] [7] [8].
  • Removed the SubscribeForPolling and UnSubscribeFromPolling methods from RenderableContentControl.razor.cs and updated the component initialization logic to handle polling differently [1] [2] [3] [4] [5] [6].

Miscellaneous Changes:

  • Added a new folder to the Blazor project file (AXSharp.Presentation.Blazor.Controls.csproj).
  • Fixed a typo in build.ps1 by removing an extraneous string.
  • Added a new launch setting for the build configuration in launchSettings.json.

PTKu added 5 commits February 13, 2025 15:38
Refactor polling logic in Blazor components by introducing `ConfigurePolling` and `StartPolling` methods. Remove `DoPublishOnly` option to simplify task logic. Update `dev.yml` to include conditional logic for Cake script. Modify `build.ps1` to exit with the last exit code. Add new folders to `AXSharp.Presentation.Blazor.Controls.csproj`. Make several classes abstract to enforce proper inheritance. Update various `.razor` files to include `ConfigurePolling` and call `StartPolling`.
Simplified `UpdateValuesOnChange` methods in `RenderableComponentBase.cs` by removing the `pollingInterval` parameter. Removed `OnInitialized` method from `RenderableContentControl.razor.cs`. Improved XML documentation for `ForceRender` method. Added `PollingInterval` attribute to component initialization in `RenderableContentControl.razor.cs`.
@PTKu PTKu marked this pull request as ready for review February 17, 2025 11:57
@PTKu PTKu requested a review from TomKovac February 17, 2025 11:58
@PTKu PTKu merged commit 6b6973a into dev Feb 17, 2025
2 checks passed
@PTKu PTKu deleted the refactor-simplify-polling-on-generated-componenents branch February 17, 2025 11:58
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