public Startup(IConfiguration configuration, IWebHostEnvironment _hostingEnvironment) #endif { log4net.GlobalContext.Properties["LogPath"] = _hostingEnvironment.ContentRootPath; LogExtension.RegisterLog4NetConfig(); string License = File.ReadAllText(System.IO.Path.Combine(_hostingEnvironment.ContentRootPath, "BoldLicense.txt"), Encoding.UTF8); BoldLicenseProvider.RegisterLicense(License); ReportConfig.DefaultSettings = new ReportSettings() { MapSetting = this.GetMapSettings(_hostingEnvironment) }.RegisterExtensions(this.GetDataExtension(configuration.GetSection("appSettings").GetSection("ExtAssemblies").Value)); Configuration = configuration; env = _hostingEnvironment; }