Ejemplo n.º 1
0
        public HomeController(
            IConfigurationRoot configuration,
            IHostingEnvironment hostingEnvironment,
            JsEvaluationService jsEvaluationService)
        {
            string textContentDirectoryPath = configuration
                                              .GetSection("jsengineswitcher")
                                              .GetSection("Samples")["TextContentDirectoryPath"]
            ;

            _fileContentService  = new FileContentService(textContentDirectoryPath, hostingEnvironment);
            _jsEvaluationService = jsEvaluationService;
        }
Ejemplo n.º 2
0
 public HomeController(FileContentService fileContentService, JsEvaluationService jsEvaluationService)
 {
     _fileContentService  = fileContentService;
     _jsEvaluationService = jsEvaluationService;
 }