Esempio n. 1
0
        public Startup(Microsoft.AspNetCore.Hosting.IWebHostEnvironment env)
        {
            var builder = new ConfigurationBuilder()
                          .AddJsonFile($"connectionstrings{(env.IsDevelopment() ? "" : "")}.json", false, true)
                          .AddJsonFile("apisecuritysettings.json", false, true)

                          //Services

                          .AddEnvironmentVariables();

            if (env.IsEnvironment("Development"))
            {
                //Development environment settings
            }

            Configuration = builder.Build();
        }