-
-
Save justinyoo/09ff8cb65f1ad10ccec5d37979774fc2 to your computer and use it in GitHub Desktop.
Adding YAML Settings into ASP.NET Core Apps
This file contains 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 class ValuesController : Controller | |
{ | |
private readonly AzureAdSettings _settings; | |
public ValuesController(AzureAdSettings settings) | |
{ | |
this._settings = settings; | |
} | |
[HttpGet] | |
public IEnumerable<string> Get() | |
{ | |
return new string[] { "value1", "value2", this._settings.ClientId }; | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment