This repository was archived by the owner on Dec 14, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
SqlServerCacheConcurencySample Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ public class Program
3030
3131 public Program ( IApplicationEnvironment appEnv )
3232 {
33- var configurationBuilder = new ConfigurationBuilder ( appEnv . ApplicationBasePath ) ;
34- configurationBuilder . AddJsonFile ( "config.json" )
35- . AddEnvironmentVariables ( ) ;
33+ var configurationBuilder = new ConfigurationBuilder ( ) ;
34+ configurationBuilder
35+ . SetBasePath ( appEnv . ApplicationBasePath )
36+ . AddJsonFile ( "config.json" )
37+ . AddEnvironmentVariables ( ) ;
3638 Configuration = configurationBuilder . Build ( ) ;
3739 }
3840
Original file line number Diff line number Diff line change @@ -25,9 +25,11 @@ public class Program
2525 {
2626 public Program ( IApplicationEnvironment appEnv )
2727 {
28- var configurationBuilder = new ConfigurationBuilder ( appEnv . ApplicationBasePath ) ;
29- configurationBuilder . AddJsonFile ( "config.json" )
30- . AddEnvironmentVariables ( ) ;
28+ var configurationBuilder = new ConfigurationBuilder ( ) ;
29+ configurationBuilder
30+ . SetBasePath ( appEnv . ApplicationBasePath )
31+ . AddJsonFile ( "config.json" )
32+ . AddEnvironmentVariables ( ) ;
3133 Configuration = configurationBuilder . Build ( ) ;
3234 }
3335
You can’t perform that action at this time.
0 commit comments