-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add BuildApp and WithInstance methods to builder #4124
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
Introduces BuildApp for building and returning a ReactiveUI instance, and adds a set of WithInstance methods supporting up to 16 generic parameters to resolve and pass services to actions for chaining. These additions improve the flexibility and usability of the ReactiveUIBuilder API.
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.
Pull Request Overview
This PR adds a BuildApp
method to the ReactiveUI builder that builds and returns a ReactiveUIInstance wrapper, along with a comprehensive set of WithInstance
methods supporting 1-16 generic parameters for dependency injection chaining. This enhances the builder API's flexibility by allowing fluent method chaining with resolved services.
Corrects the usage of GetService<T>() in ReactiveUIBuilder to remove unnecessary nullable type arguments, ensuring proper service resolution. Also updates Splat to 16.2.1 and Reactive.Wasm to 3.0.1 in Directory.Packages.props.
Eliminated unnecessary <exception cref="System.ArgumentNullException"> documentation from WithInstance method overloads and BuildApp in ReactiveUIBuilder.cs to reduce clutter and improve code readability.
Introduces the BuildApp method for building the application and returning an IReactiveUIInstance. Adds overloaded WithInstance methods supporting up to 16 generic parameters, allowing resolution of multiple instances and passing them to actions for chaining.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4124 +/- ##
==========================================
- Coverage 38.03% 35.85% -2.19%
==========================================
Files 132 138 +6
Lines 5489 5887 +398
Branches 825 885 +60
==========================================
+ Hits 2088 2111 +23
- Misses 3188 3614 +426
+ Partials 213 162 -51 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What kind of change does this PR introduce?
feature update
What is the new behavior?
Introduces BuildApp for building and returning a ReactiveUI instance, and adds a set of WithInstance methods supporting up to 16 generic parameters to resolve and pass services to actions for chaining. These additions improve the flexibility and usability of the ReactiveUIBuilder API.
What might this PR break?
None
Please check if the PR fulfills these requirements
Other information: