Ejemplo n.º 1
0
        public HomeController(
			IConfigurationRoot configuration,
			IApplicationEnvironment applicationEnvironment,
			SitemapService sitemapService)
        {
            string textContentDirectoryPath = configuration
                .GetSection("webmarkupmin")
                .GetSection("Samples")["TextContentDirectoryPath"]
                ;

            _fileContentService = new FileContentService(textContentDirectoryPath, applicationEnvironment);
            _sitemapService = sitemapService;
        }
Ejemplo n.º 2
0
		protected void Page_Load(object sender, EventArgs e)
		{
			var fileContentService = new FileContentService(
				ConfigurationManager.AppSettings["webmarkupmin:Samples:TextContentDirectoryPath"]);
			Body = fileContentService.GetFileContent("change-log.html");
		}
Ejemplo n.º 3
0
 public HomeController(FileContentService fileContentService, SitemapService sitemapService)
 {
     _fileContentService = fileContentService;
     _sitemapService = sitemapService;
 }