public Sitemap(string id, ISitemapContent content) { Id = id; Content = content; }
static void RenderSitemap(ISitemapContent content, SitemapContext context, HttpContext httpContext) { var urls = content.GetUrls(context); SitemapSerializer.Serialize(urls).Save(httpContext.Response.Output); }