Skip to content

Modularity Fix (backport #3219)#3227

Merged
dansiegel merged 3 commits intorelease/stable/9.0from
mergify/bp/release/stable/9.0/pr-3219
Aug 14, 2024
Merged

Modularity Fix (backport #3219)#3227
dansiegel merged 3 commits intorelease/stable/9.0from
mergify/bp/release/stable/9.0/pr-3219

Conversation

@mergify
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
@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