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

[BUG] Injection IContainerProvider #3280

Open
Vunda opened this issue Nov 20, 2024 · 2 comments
Open

[BUG] Injection IContainerProvider #3280

Vunda opened this issue Nov 20, 2024 · 2 comments
Labels

Comments

@Vunda
Copy link

Vunda commented Nov 20, 2024

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

PrismContainer.zip

Steps to Reproduce

  1. Create maui template app.
  2. Instal Prism.DryIoc.Maui
  3. Create CustomService with IContainerProvider as argument in constructor.
  4. Add CustomPage for tests.
  5. Inject IContainerProvider in App.xaml.cs.
  6. Inject CustomService in CustomPage.
  7. 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

@Vunda
Copy link
Author

Vunda commented Nov 20, 2024

sorry forget to write. I tested on iOS simulator.

@Vunda
Copy link
Author

Vunda commented Dec 2, 2024

Any update ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants