public HomeController( IConfigurationRoot configuration, IApplicationEnvironment applicationEnvironment, SitemapService sitemapService) { string textContentDirectoryPath = configuration .GetSection("webmarkupmin") .GetSection("Samples")["TextContentDirectoryPath"] ; _fileContentService = new FileContentService(textContentDirectoryPath, applicationEnvironment); _sitemapService = sitemapService; }
protected void Page_Load(object sender, EventArgs e) { var fileContentService = new FileContentService( ConfigurationManager.AppSettings["webmarkupmin:Samples:TextContentDirectoryPath"]); Body = fileContentService.GetFileContent("change-log.html"); }
public HomeController(FileContentService fileContentService, SitemapService sitemapService) { _fileContentService = fileContentService; _sitemapService = sitemapService; }