reference : https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-usage add Base Interface add 3 Interface like this image and inheritance Base Interface add 3 Class For Implementation Interface Add Services Add Service Lifetime Reporter Final Result