Skip to content

Commit

Permalink
React to aspnet/Configuration #194
Browse files Browse the repository at this point in the history
  • Loading branch information
kirthik committed May 22, 2015
1 parent 186d4cd commit 0abe9e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/ServerComparison.TestSites/StartupHelloWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ public StartupHelloWorld(IApplicationEnvironment env)
{
//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.
Configuration = new ConfigurationSection(env.ApplicationBasePath)
var builder = new ConfigurationBuilder(env.ApplicationBasePath)
.AddJsonFile("config.json")
.AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values.
Configuration = builder.Build();
}

public IConfiguration Configuration { get; private set; }
Expand Down
3 changes: 2 additions & 1 deletion test/ServerComparison.TestSites/StartupNtlmAuthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ public StartupNtlmAuthentication(IApplicationEnvironment env)
{
//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.
Configuration = new ConfigurationSection(env.ApplicationBasePath)
var builder = new ConfigurationBuilder(env.ApplicationBasePath)
.AddJsonFile("config.json")
.AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values.
Configuration = builder.Build();
}

public IConfiguration Configuration { get; private set; }
Expand Down

0 comments on commit 0abe9e2

Please sign in to comment.