Read the application's configuration in ASP.NET Core
As an ASP.NET developer you always used web.config to store and retrieve the application's configuration information. ASP.NET Core uses a different configuration system that is more flexible and powerful than before. In this article you will learn the basics of storing and retrieving the configuration information from JSON and XML files. You will also learn to use DI to inject this information into controllers.
http://www.binaryintellect.net/articles/eea7cb81-ebcd-4743-81b4-d8c436c2956f.aspx