Exemple #1
0
        public Startup(IWebHostEnvironment env)
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(env.ContentRootPath)
                          .AddJsonFile($"{AppSettingsFile}.{JsonTermination}", false, true)
                          .AddJsonFile($"{AppSettingsFile}.{env.EnvironmentName}.{JsonTermination}", false, true)
                          .AddEnvironmentVariables();

            Configuration = builder.Build();

            DatabaseConfiguration.Configure();
            AppSettings.Configure(Configuration);
            IoCConfiguration.ConfigureServiceLocator();
        }