Dependency Injection (DI) is one of the foundations of modern .NET development. Whether you're building ASP.NET Core APIs, Minimal APIs, Worker Services, or libraries, you're probably using Microsoft.Extensions.DependencyInjection.
It works well, but as applications grow, one challenge becomes obvious: service registration.
Most teams end up choosing one of two approaches.
The first is manual registration:
services.AddScoped<IOrderService, OrderService>();






