public SitemapModel(ISitemapFactory sitemapFactory) { _sitemapFactory = sitemapFactory.CheckNotNull(nameof(sitemapFactory)); }
public SitemapModel(ISitemapFactory sitemapFactory, SatrimonoContext dbContext) { _sitemapFactory = sitemapFactory.CheckNotNull(nameof(sitemapFactory)); _db = dbContext.CheckNotNull(nameof(dbContext)); }
/// <summary> /// Initializes a new instance of the <see cref="SeoController" /> class. /// </summary> /// <param name="robotsTxtFactory">The <see cref="IRobotsTxtFactory" /> for creating the robots.txt file.</param> /// <param name="sitemapFactory">The <see cref="ISitemapFactory" /> for creating the sitemap.xml file.</param> public SeoController(IRobotsTxtFactory robotsTxtFactory, ISitemapFactory sitemapFactory) { _robotsTxtFactory = robotsTxtFactory; _sitemapFactory = sitemapFactory; }