示例#1
0
 public SitemapModel(ISitemapFactory sitemapFactory)
 {
     _sitemapFactory = sitemapFactory.CheckNotNull(nameof(sitemapFactory));
 }
示例#2
0
 public SitemapModel(ISitemapFactory sitemapFactory, SatrimonoContext dbContext)
 {
     _sitemapFactory = sitemapFactory.CheckNotNull(nameof(sitemapFactory));
     _db             = dbContext.CheckNotNull(nameof(dbContext));
 }
示例#3
0
 /// <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;
 }