Open
Description
Description
Cannot inject IContainerProvider to custom services. container doesn't see registered pages.
Tested Prism version 9.0.537
Dotnet sdk 8.0.404
It is very strange but container in App.xaml.cs works fine. and constructor of custom service invoked after App constructor. It is mean that container was already builded.
Attached tested project
Steps to Reproduce
- Create maui template app.
- Instal Prism.DryIoc.Maui
- Create CustomService with IContainerProvider as argument in constructor.
- Add CustomPage for tests.
- Inject IContainerProvider in App.xaml.cs.
- Inject CustomService in CustomPage.
- Check if the container in custom service has registered pages...
Platform with bug
.NET MAUI
Affected platforms
iOS, Android
Did you find any workaround?
No response
Relevant log output
No response