From 0a3456042a04a47cace73c979925a9114278a7fa Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 16 Sep 2014 10:48:33 -0700 Subject: [PATCH] Updating sample to use config file named config.json instead of LocalConfig.json --- src/MusicStore/Mocks/StartupSocialTesting.cs | 2 +- src/MusicStore/MusicStore.kproj | 2 +- src/MusicStore/Startup.cs | 6 +++--- src/MusicStore/StartupNtlmAuthentication.cs | 6 +++--- src/MusicStore/{LocalConfig.json => config.json} | 0 5 files changed, 8 insertions(+), 8 deletions(-) rename src/MusicStore/{LocalConfig.json => config.json} (100%) diff --git a/src/MusicStore/Mocks/StartupSocialTesting.cs b/src/MusicStore/Mocks/StartupSocialTesting.cs index 01763a0d18..8d44fc9acf 100644 --- a/src/MusicStore/Mocks/StartupSocialTesting.cs +++ b/src/MusicStore/Mocks/StartupSocialTesting.cs @@ -30,7 +30,7 @@ namespace MusicStore //Below code demonstrates usage of multiple configuration sources. For instance a setting say 'setting1' is found in both the registered sources, //then the later source will win. By this way a Local config can be overridden by a different setting while deployed remotely. var configuration = new Configuration(); - configuration.AddJsonFile("LocalConfig.json"); + configuration.AddJsonFile("config.json"); configuration.AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values. //Error page middleware displays a nice formatted HTML page for any unhandled exceptions in the request pipeline. diff --git a/src/MusicStore/MusicStore.kproj b/src/MusicStore/MusicStore.kproj index 0d73b2ccf5..940621e596 100644 --- a/src/MusicStore/MusicStore.kproj +++ b/src/MusicStore/MusicStore.kproj @@ -22,7 +22,7 @@ - + diff --git a/src/MusicStore/Startup.cs b/src/MusicStore/Startup.cs index 27c688b0dc..1b9dcd69e0 100644 --- a/src/MusicStore/Startup.cs +++ b/src/MusicStore/Startup.cs @@ -24,9 +24,9 @@ namespace MusicStore { //Below code demonstrates usage of multiple configuration sources. For instance a setting say 'setting1' is found in both the registered sources, //then the later source will win. By this way a Local config can be overridden by a different setting while deployed remotely. - var configuration = new Configuration(); - configuration.AddJsonFile("LocalConfig.json"); - configuration.AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values. + var configuration = new Configuration() + .AddJsonFile("config.json") + .AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values. //Error page middleware displays a nice formatted HTML page for any unhandled exceptions in the request pipeline. //Note: ErrorPageOptions.ShowAll to be used only at development time. Not recommended for production. diff --git a/src/MusicStore/StartupNtlmAuthentication.cs b/src/MusicStore/StartupNtlmAuthentication.cs index dab06eae60..3dbe03de33 100644 --- a/src/MusicStore/StartupNtlmAuthentication.cs +++ b/src/MusicStore/StartupNtlmAuthentication.cs @@ -58,9 +58,9 @@ namespace MusicStore //Below code demonstrates usage of multiple configuration sources. For instance a setting say 'setting1' is found in both the registered sources, //then the later source will win. By this way a Local config can be overridden by a different setting while deployed remotely. - var configuration = new Configuration(); - configuration.AddJsonFile("LocalConfig.json"); - configuration.AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values. + var configuration = new Configuration() + .AddJsonFile("config.json") + .AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values. //Error page middleware displays a nice formatted HTML page for any unhandled exceptions in the request pipeline. //Note: ErrorPageOptions.ShowAll to be used only at development time. Not recommended for production. diff --git a/src/MusicStore/LocalConfig.json b/src/MusicStore/config.json similarity index 100% rename from src/MusicStore/LocalConfig.json rename to src/MusicStore/config.json