Last active
July 26, 2018 22:56
-
-
Save wellingtonjhn/89f4444f64535d7b977bcb0794a23cdb to your computer and use it in GitHub Desktop.
IConfiguration Simple Usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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