Skip to content

[BUG] Injection IContainerProvider #3280

Open
@Vunda

Description

@Vunda

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions