Lightlines
By dotnet

maui-dependency-injection

dotnet2.3k installs

Wire your MAUI dependencies with lifetimes that fit.

What it does

Guides dependency-injection setup in .NET MAUI projects so services, Pages, and ViewModels have appropriate lifetimes and resolve their dependencies correctly.

When to use it

Use when registering services, Pages, and ViewModels, selecting lifetimes, wiring constructor injection, handling platform-specific registrations, or designing testable service layers.

How to use it

It changes how the agent configures dependency injection in an existing .NET MAUI project, covering registration, lifetimes, constructor wiring, and runtime verification.

What you provide

  • An existing project

Latest review

What you need · 1

Required when using the documented typed or named HTTP-client registration pattern with IHttpClientFactory.


Access · 0

No additional actions listed.