コード例 #1
0
 public SitemapGenerator(IEnumerable <ISitemapProvider> providers, ISitemapIndexGenerator indexGenerator, ISitemapGeneratorConfig config, ISiteConfiguration siteConfiguration)
 {
     Providers         = providers ?? throw new ArgumentNullException(nameof(ISitemapProvider));
     IndexGenerator    = indexGenerator ?? throw new ArgumentNullException(nameof(ISitemapIndexGenerator));
     Config            = config ?? throw new ArgumentNullException(nameof(ISitemapGeneratorConfig));
     SiteConfiguration = siteConfiguration ?? throw new ArgumentNullException(nameof(siteConfiguration));
 }
 //--and IoC/Dependency injection framework should inject this in
 public SitemapGenerationWithSitemapIndexExample(
     ISitemapGenerator sitemapGenerator,
     ISitemapIndexGenerator sitemapIndexGenerator,
     IWebsiteUrlRetriever websiteUrlRetriever)
 {
     _sitemapGenerator      = sitemapGenerator;
     _sitemapIndexGenerator = sitemapIndexGenerator;
     _websiteUrlRetriever   = websiteUrlRetriever;
 }
 //--and IoC/Dependency injection framework should inject this in
 public SitemapGenerationWithSitemapIndexExample(
     ISitemapGenerator sitemapGenerator, 
     ISitemapIndexGenerator sitemapIndexGenerator, 
     IWebsiteUrlRetriever websiteUrlRetriever)
 {
     _sitemapGenerator = sitemapGenerator;
     _sitemapIndexGenerator = sitemapIndexGenerator;
     _websiteUrlRetriever = websiteUrlRetriever;
 }
コード例 #4
0
 public SitemapGeneratorService(
     ISitemapIndexGenerator sitemapIndexGenerator,
     IUniversalGameSitemapGenerator universalGameSitemapGenerator,
     IGamingGroupsSitemapGenerator gamingGroupsSitemapGenerator,
     IStaticPagesSitemapGenerator staticPagesSitemapGenerator,
     IConfigurationManager configurationManager)
 {
     _sitemapIndexGenerator         = sitemapIndexGenerator;
     _universalGameSitemapGenerator = universalGameSitemapGenerator;
     _gamingGroupsSitemapGenerator  = gamingGroupsSitemapGenerator;
     _staticPagesSitemapGenerator   = staticPagesSitemapGenerator;
     _configurationManager          = configurationManager;
 }
コード例 #5
0
 public SitemapGeneratorService(
     ISitemapIndexGenerator sitemapIndexGenerator,
     IUniversalGameSitemapGenerator universalGameSitemapGenerator, 
     IGamingGroupsSitemapGenerator gamingGroupsSitemapGenerator, 
     IStaticPagesSitemapGenerator staticPagesSitemapGenerator, 
     IConfigurationManager configurationManager)
 {
     _sitemapIndexGenerator = sitemapIndexGenerator;
     _universalGameSitemapGenerator = universalGameSitemapGenerator;
     _gamingGroupsSitemapGenerator = gamingGroupsSitemapGenerator;
     _staticPagesSitemapGenerator = staticPagesSitemapGenerator;
     _configurationManager = configurationManager;
 }