Skip to content

Call WithCoreServices and add platform converters#4316

Merged
ChrisPulman merged 2 commits intomainfrom
ResolveCoreServices
Mar 31, 2026
Merged

Call WithCoreServices and add platform converters#4316
ChrisPulman merged 2 commits intomainfrom
ResolveCoreServices

Conversation

@ChrisPulman
Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

update

What is the new behavior?

Ensure core services are initialized before configuring platform-specific builders by calling WithCoreServices() (cast back to IReactiveUIBuilder) in AndroidX, Blazor, MAUI and WinUI builder extensions. Add MAUI and WinUI converter registration helpers (WithMauiConverters and WithWinUIConverters) that register BooleanToVisibilityTypeConverter, VisibilityToBooleanTypeConverter and ComponentModelFallbackConverter via the builder's WithConverter/WithFallbackConverter APIs. Also add required using directives for MAUI and update WinUI scheduler XML docs; null checks use ArgumentExceptionHelper.ThrowIfNull.

What might this PR break?

If a user has called WithCoreServices() already in code they should clean up the existing source to remove this unless a custom configuration has been made.

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

Ensure core services are initialized before configuring platform-specific builders by calling WithCoreServices() (cast back to IReactiveUIBuilder) in AndroidX, Blazor, MAUI and WinUI builder extensions. Add MAUI and WinUI converter registration helpers (WithMauiConverters and WithWinUIConverters) that register BooleanToVisibilityTypeConverter, VisibilityToBooleanTypeConverter and ComponentModelFallbackConverter via the builder's WithConverter/WithFallbackConverter APIs. Also add required using directives for MAUI and update WinUI scheduler XML docs; null checks use ArgumentExceptionHelper.ThrowIfNull.
Update the IAppBuilder test stub in BlazorReactiveUIBuilderExtensionsTests.cs so WithCoreServices returns the builder instance instead of throwing NotImplementedException. This prevents test failures when WithCoreServices is invoked and preserves fluent chaining on the stub.
@ChrisPulman ChrisPulman enabled auto-merge (squash) March 31, 2026 00:38
@ChrisPulman ChrisPulman merged commit 1645c9a into main Mar 31, 2026
4 checks passed
@ChrisPulman ChrisPulman deleted the ResolveCoreServices branch March 31, 2026 00:42
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.68%. Comparing base (85db635) to head (9feacc0).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4316      +/-   ##
==========================================
- Coverage   89.70%   89.68%   -0.02%     
==========================================
  Files         251      251              
  Lines        9612     9618       +6     
  Branches     1460     1460              
==========================================
+ Hits         8622     8626       +4     
- Misses        750      753       +3     
+ Partials      240      239       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants