Updating Social startup as well to use chaining to add configuration sources.
This commit is contained in:
parent
0a3456042a
commit
de6b05cd86
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue