/// <summary> /// Use this constructor when you just want a SiteMap and you're not planning to go over the size limits. /// </summary> /// <param name="siteMapPath">The <see cref="Uri"/> of the sitemap you're building.</param> public SiteMap(Uri siteMapPath) { SiteMapPath = siteMapPath; config = new SiteMapConfig { maxFileSize = 0, maxLocationCount = 0 }; }
public SiteMap(Uri siteMapPath, bool stayCompliant) { SiteMapPath = siteMapPath; if (!stayCompliant) { return; } config = new SiteMapConfig { maxFileSize = 50000000, maxLocationCount = 50000 }; }
/// <summary> /// Use this constructor if you want to limit your sitemap to a certain file size or url count. /// </summary> /// <param name="siteMapPath">The <see cref="Uri"/> of the sitemap you're building</param> /// <param name="siteMapConfig">The sitemap configuration restraints</param> public SiteMap(Uri siteMapPath, SiteMapConfig siteMapConfig) { SiteMapPath = siteMapPath; config = siteMapConfig; }