Пример #1
0
        private static IConfiguration GetConfiguration()
        {
            var environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? EnvironmentName.Production;

            return(ApiConfigurationBuilder.Build(Directory.GetCurrentDirectory(), environmentName));
        }
Пример #2
0
 public Startup(IHostingEnvironment env)
 {
     Configuration = ApiConfigurationBuilder.Build(env.ContentRootPath, env.EnvironmentName);
 }