Created
July 26, 2018 07:08
-
-
Save wellingtonjhn/569b5d0386215268f84005b8b21b7f63 to your computer and use it in GitHub Desktop.
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
| [Route("api/[controller]")] | |
| public class HomeController : Controller | |
| { | |
| public HomeController(IOptions<MySettings> settings) | |
| { | |
| var applicationName = settings.Value.ApplicationName; | |
| var author = settings.Value.Author; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment