Ejemplo n.º 1
0
        private static IConfiguration GetConfiguration()
        {
            var environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? EnvironmentName.Production;

            return(ApiConfigurationBuilder.Build(Directory.GetCurrentDirectory(), environmentName));
        }
Ejemplo n.º 2
0
 public Startup(IHostingEnvironment env)
 {
     Configuration = ApiConfigurationBuilder.Build(env.ContentRootPath, env.EnvironmentName);
 }