Advertisement
Guest User

Untitled

a guest
Dec 30th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public static IConfigurationRoot Configuration;
  2.  
  3. public Startup(IApplicationEnviroment appEnv)
  4. {
  5. var builder = new ConfigurationBuilder()
  6. .SetBasePath(appEnv.ApplicationBasePath)
  7. .AddJsonFile("config.json")
  8. .AddEnvironmentVariables();
  9.  
  10. Configuration = builder.Build();
  11. }
  12.  
  13. using Microsoft.Framework.Configuration;
  14.  
  15. using Microsoft.Extensions.Configuration;
  16.  
  17. IApplicationEnviroment appEnv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement