Skip to content

Modularity Fix#3219

Merged
dansiegel merged 3 commits intomasterfrom
dev/ds/module-fix
Aug 14, 2024
Merged

Modularity Fix#3219
dansiegel merged 3 commits intomasterfrom
dev/ds/module-fix

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

@mergify
Copy link

mergify bot commented Aug 14, 2024

backport release/stable/9.0

✅ Backports have been created

Details

@dansiegel dansiegel merged commit 6a86364 into master Aug 14, 2024
@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