public HtmlController(IHostingEnvironment env, IDebugService debugService) { var config = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json") .Build(); _uIApiConfiguration = config.GetSection("UIApi").Get <UiApiConfiguration>(); _env = env; _debugService = debugService; }
public HtmlController(IHostingEnvironment env, IDebugService debugService, ILogger <HtmlController> logger, IReadOnlyPolicyRegistry <string> policyRegistry) { var config = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json") .Build(); _uIApiConfiguration = config.GetSection("UIApi").Get <UiApiConfiguration>(); _env = env; _debugService = debugService; _logger = logger; _policyRegistry = policyRegistry; }