.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.
Keep endpoints thin, inject application services, and choose lifetimes deliberately.