.NET & C# · Web API
How should dependency injection in APIs be designed for production in Web API?
Keep endpoints thin, inject application services, and choose lifetimes deliberately. The implementation should be justified by measurable requirements, kept as simple as the problem allows, and validated with realistic tests, telemetry, failure handling, and documented tradeoffs.