Skip to content

Instantly share code, notes, and snippets.

@wellingtonjhn
Last active July 26, 2018 22:56
Show Gist options
  • Select an option

  • Save wellingtonjhn/89f4444f64535d7b977bcb0794a23cdb to your computer and use it in GitHub Desktop.

Select an option

Save wellingtonjhn/89f4444f64535d7b977bcb0794a23cdb to your computer and use it in GitHub Desktop.
IConfiguration Simple Usage
public HomeController(IConfiguration configuration)
{
var applicationName = configuration.GetValue<string>("MySettings:ApplicationName");
var logLevel = configuration.GetValue<string>("Logging:LogLevel:Default");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment