From de6b05cd8617f42ab346f6076805376d2d5bf494 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 16 Sep 2014 10:50:24 -0700 Subject: [PATCH] Updating Social startup as well to use chaining to add configuration sources. --- src/MusicStore/Mocks/StartupSocialTesting.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MusicStore/Mocks/StartupSocialTesting.cs b/src/MusicStore/Mocks/StartupSocialTesting.cs index 8d44fc9acf..4aacea4c88 100644 --- a/src/MusicStore/Mocks/StartupSocialTesting.cs +++ b/src/MusicStore/Mocks/StartupSocialTesting.cs @@ -29,9 +29,9 @@ namespace MusicStore Console.WriteLine("Social Testing mode..."); //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("config.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.