Microsoft [has added a DI feature](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-8.0&WT.mc_id=DT-MVP-5003472#keyed-services) for keyed services. I have a use case where I need to have different clients with different credentials. If the maintainers agree, I can open a pull request.