Created
October 1, 2019 15:09
-
-
Save kasunkv/3a91a5106c4042e2ce78339267eb208a to your computer and use it in GitHub Desktop.
Using Azure App Configuration in ASP.Net Core MVC Application
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 static IWebHostBuilder CreateWebHostBuilder(string[] args) => | |
WebHost | |
.CreateDefaultBuilder(args) | |
.ConfigureAppConfiguration((context, config) => | |
{ | |
var settings = config.Build(); | |
// Connect to Azure App Configuration using the Connection String. | |
config.AddAzureAppConfiguration(settings["ConnectionStrings:AppConfiguration"]); | |
}) | |
.UseStartup<Startup>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment