[DryIoc] Update default container rules. #1463
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
Update default container rules in Prism.DryIoc.Wpf and Prism.DryIoc.Forms.
Type registration from DryIocContainerExtension has become inconsistent between WPF and Xamarin since commit 9b82533.
This commit makes both platforms behave the same way again.
Moving the mentioned changes to the default container rules makes type registration from the container and container extension behave consistently and allows to override the behavior of the container extension.
Bugs Fixed
Fixes a bug equivalent to #1304 on WPF platform.
API Changes
None
Behavioral Changes
By default, the container will resolve types using the constructor with the most resolvable arguments.
The container extension will use default rules for registration (no change for WPF).
PR Checklist