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 #3219

Merged
merged 3 commits into from
Aug 14, 2024
Merged

Modularity Fix #3219

merged 3 commits into from
Aug 14, 2024

Conversation

dansiegel
Copy link
Member

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.

@dansiegel
Copy link
Member Author

@Mergifyio backport release/stable/9.0

Copy link

mergify bot commented Aug 14, 2024

backport release/stable/9.0

✅ Backports have been created

@dansiegel dansiegel merged commit 6a86364 into master Aug 14, 2024
2 checks passed
@dansiegel dansiegel deleted the dev/ds/module-fix branch August 14, 2024 16:18
dansiegel added a commit that referenced this pull request Aug 14, 2024
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