예제 #1
0
        private void GenerateSitemaps(SitemapData sitemapConfig, StringBuilder builder)
        {
            int entryCount;
            var success = sitemapService.Generate(sitemapConfig, out entryCount);

            if (success)
            {
                builder.Append(string.Format("<br/>\"{0}\": {1} entries", sitemapConfig.Host, entryCount));
            }
            else
            {
                builder.Append("<br/>Error creating sitemap for \"" + sitemapConfig.Host + "\"");
            }
        }