The dependency injection framework for C# and dotnet core, aspnetcore, .Net 5, etc. is, as provided, configured in an imperative manner. When a service is created that needs to be injected or to change how a class is injected, we then have to go manually update the dependency-injection registration, usually…