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

Modularity Fix (backport #3219) #3227

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 14, 2024

Description of Change

This updates the registration logic for the Modules to avoid a static registration flag. This now is updated to use TryRegister.

This also updates the ModuleCatalog for MAUI/Uno to use a constructor that takes an IEnumerable<IModuleInfo> thus allowing instances of IModuleInfo to be registered with the container and later injected into the ModuleCatalog. NOTE you still need to call ConfigureModuleCatalog or register the services yourself if you prefer to use DI

Bugs Fixed

  • Unit Tests fail on reinitialization due to the static flag still being true.

API Changes

  • default ctor -> (IEnumerable)

Behavioral Changes

IModuleInfo can now be injected with DI into the ModuleCatalog on MAUI and Uno. This was not applied to WPF as we are still shipping Unity Container which does not support this.


This is an automatic backport of pull request #3219 done by Mergify.

@mergify mergify bot mentioned this pull request Aug 14, 2024
@dansiegel dansiegel merged commit df498ca into release/stable/9.0 Aug 14, 2024
2 checks passed
@dansiegel dansiegel deleted the mergify/bp/release/stable/9.0/pr-3219 branch August 14, 2024 18:01
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