Here Mudassar Ahmed Khan has explained with an example, how to use the Configuration class using Dependency Injection in ASP.Net Core.
Microsoft has replaced System.Configuration class with IConfiguration interface in .Net Core 2.0 onwards and this article will illustrate how to use Dependency Injection for injecting IConfiguration interface in ASP.Net Core.