public HomeController( IConfigurationRoot configuration, IHostingEnvironment hostingEnvironment, JsEvaluationService jsEvaluationService) { string textContentDirectoryPath = configuration .GetSection("jsengineswitcher") .GetSection("Samples")["TextContentDirectoryPath"] ; _fileContentService = new FileContentService(textContentDirectoryPath, hostingEnvironment); _jsEvaluationService = jsEvaluationService; }
public HomeController(FileContentService fileContentService, JsEvaluationService jsEvaluationService) { _fileContentService = fileContentService; _jsEvaluationService = jsEvaluationService; }