private static IConfiguration GetConfiguration() { var environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? EnvironmentName.Production; return(ApiConfigurationBuilder.Build(Directory.GetCurrentDirectory(), environmentName)); }
public Startup(IHostingEnvironment env) { Configuration = ApiConfigurationBuilder.Build(env.ContentRootPath, env.EnvironmentName); }