public ArticleController(IArticleService _articleService, IRequestCacheService _requestCacheService,
     ISitemapService _sitemapService)
 {
     articleService = _articleService;
     requestCacheService = _requestCacheService;
     sitemapService = _sitemapService;
 }
Example #2
0
        public HomeController(
            IBrowserConfigService browserConfigService,
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            IFeedService feedService,
#endif
            IManifestService manifestService,
            IOpenSearchService openSearchService,
            IRobotsService robotsService,
            ISitemapService sitemapService,
            IOptions<AppSettings> appSettings)
        {
            this.appSettings = appSettings;
            this.browserConfigService = browserConfigService;
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            this.feedService = feedService;
#endif
            this.manifestService = manifestService;
            this.openSearchService = openSearchService;
            this.robotsService = robotsService;
            this.sitemapService = sitemapService;
        }
 public HomeController(
     IBrowserConfigService browserConfigService,
     IManifestService manifestService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     this.browserConfigService = browserConfigService;
     this.manifestService = manifestService;
     this.robotsService = robotsService;
     this.sitemapService = sitemapService;
 }
 public HomeController(
     IFeedService feedService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     this.feedService = feedService;
     this.openSearchService = openSearchService;
     this.robotsService = robotsService;
     this.sitemapService = sitemapService;
 }
 public DefaultPagesApiOperations(IPagesService pages, IPageService page, IContentService content, IWidgetService widget, IWidgetsService widgets,
     IRedirectsService redirects, IRedirectService redirect, Sitemap.ISitemapService sitemap, ISitemapsService sitemaps, ISitemapService sitemapNew)
 {
     Pages = pages;
     Page = page;
     Content = content;
     Widget = widget;
     Widgets = widgets;
     Redirect = redirect;
     Redirects = redirects;
     Sitemap = sitemap;
     Sitemaps = sitemaps;
     SitemapNew = sitemapNew;
 }
        // $End-Sitemap$

        #endregion

        #region Constructors

        public HomeController(
            // $Start-Windows81IE11EdgeFavicon$
            IBrowserConfigService browserConfigService,
            // $End-Windows81IE11EdgeFavicon$
            // $Start-Feed$
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            IFeedService feedService,
#endif
            // $End-Feed$
            // $Start-AndroidChromeM39Favicons$
            IManifestService manifestService,
            // $End-AndroidChromeM39Favicons$
            // $Start-Search$
            IOpenSearchService openSearchService,
            // $End-Search$
            // $Start-RobotsText$
            IRobotsService robotsService,
            // $End-RobotsText$
            // $Start-Sitemap$
            ISitemapService sitemapService,
            // $End-Sitemap$
            IOptions<AppSettings> appSettings)
        {
            this.appSettings = appSettings;
            // $Start-Windows81IE11EdgeFavicon$
            this.browserConfigService = browserConfigService;
            // $End-Windows81IE11EdgeFavicon$
            // $Start-Feed$
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            this.feedService = feedService;
#endif
            // $End-Feed$
            // $Start-AndroidChromeM39Favicons$
            this.manifestService = manifestService;
            // $End-AndroidChromeM39Favicons$
            // $Start-Search$
            this.openSearchService = openSearchService;
            // $End-Search$
            // $Start-RobotsText$
            this.robotsService = robotsService;
            // $End-RobotsText$
            // $Start-Sitemap$
            this.sitemapService = sitemapService;
            // $End-Sitemap$
        }
        public HomeController(
#if DNX451
            IFeedService feedService,
#endif
            IOpenSearchService openSearchService,
            IRobotsService robotsService,
            ISitemapService sitemapService)
        {
#if DNX451
            this.feedService = feedService;
#endif
            this.openSearchService = openSearchService;
            this.robotsService = robotsService;
            this.sitemapService = sitemapService;
        }
 public HomeController(
     IBrowserConfigService browserConfigService,
     IFeedService feedService,
     IManifestService manifestService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     this.browserConfigService = browserConfigService;
     this.feedService = feedService;
     this.manifestService = manifestService;
     this.openSearchService = openSearchService;
     this.robotsService = robotsService;
     this.sitemapService = sitemapService;
 }
Example #9
0
        public DefaultPageService(
            IRepository repository, 
            IRedirectService redirectService, 
            IUrlService urlService,
            IAccessControlService accessControlService, 
            ICmsConfiguration cmsConfiguration, 
            ISitemapService sitemapService, 
            IUnitOfWork unitOfWork)
        {
            this.repository = repository;
            this.redirectService = redirectService;
            this.urlService = urlService;
            this.accessControlService = accessControlService;
            this.cmsConfiguration = cmsConfiguration;
            this.unitOfWork = unitOfWork;
            this.sitemapService = sitemapService;

            temporaryPageCache = new Dictionary<string, IPage>();
        }
        public HomeController(
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            IFeedService feedService,
#endif
            IOpenSearchService openSearchService,
            IRobotsService robotsService,
            ISitemapService sitemapService)
        {
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            this.feedService = feedService;
#endif
            this.openSearchService = openSearchService;
            this.robotsService = robotsService;
            this.sitemapService = sitemapService;
        }
Example #11
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PagesApiContext" /> class.
        /// </summary>
        /// <param name="lifetimeScope">The lifetime scope.</param>
        /// <param name="repository">The repository.</param>
        /// <param name="sitemapService">The sitemap service.</param>
        /// <param name="historyService">The history service.</param>
        public PagesApiContext(ILifetimeScope lifetimeScope, IRepository repository = null, ISitemapService sitemapService = null, IHistoryService historyService = null)
            : base(lifetimeScope, repository)
        {
            if (historyService == null)
            {
                this.historyService = Resolve<IHistoryService>();
            }
            else
            {
                this.historyService = historyService;
            }

            if (sitemapService == null)
            {
                this.sitemapService = Resolve<ISitemapService>();
            }
            else
            {
                this.sitemapService = sitemapService;
            }
        }
Example #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SavePagePropertiesCommand" /> class.
 /// </summary>
 /// <param name="pageService">The page service.</param>
 /// <param name="redirectService">The redirect service.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="sitemapService">The sitemap service.</param>
 /// <param name="urlService">The URL service.</param>
 /// <param name="optionService">The option service.</param>
 /// <param name="cmsConfiguration">The CMS configuration.</param>
 /// <param name="accessControlService">The access control service.</param>
 /// <param name="contentService">The content service.</param>
 /// <param name="masterPageService">The master page service.</param>
 public SavePagePropertiesCommand(
     IPageService pageService,
     IRedirectService redirectService,
     ITagService tagService,
     ISitemapService sitemapService,
     IUrlService urlService,
     IOptionService optionService,
     ICmsConfiguration cmsConfiguration,
     IAccessControlService accessControlService,
     IContentService contentService,
     IMasterPageService masterPageService)
 {
     this.pageService          = pageService;
     this.redirectService      = redirectService;
     this.tagService           = tagService;
     this.sitemapService       = sitemapService;
     this.urlService           = urlService;
     this.optionService        = optionService;
     this.cmsConfiguration     = cmsConfiguration;
     this.accessControlService = accessControlService;
     this.contentService       = contentService;
     this.masterPageService    = masterPageService;
 }
 public SitemapController(ILogger <SitemapController> logger,
                          ISitemapService sitemapService)
 {
     _logger         = logger;
     _sitemapService = sitemapService;
 }
Example #14
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PagesApiContext" /> class.
        /// </summary>
        /// <param name="lifetimeScope">The lifetime scope.</param>
        /// <param name="repository">The repository.</param>
        /// <param name="sitemapService">The sitemap service.</param>
        /// <param name="historyService">The history service.</param>
        public PagesApiContext(ILifetimeScope lifetimeScope, IRepository repository = null, ISitemapService sitemapService = null, IHistoryService historyService = null)
            : base(lifetimeScope, repository)
        {
            if (historyService == null)
            {
                this.historyService = Resolve <IHistoryService>();
            }
            else
            {
                this.historyService = historyService;
            }

            if (sitemapService == null)
            {
                this.sitemapService = Resolve <ISitemapService>();
            }
            else
            {
                this.sitemapService = sitemapService;
            }
        }
 public HomeController()
 {
     _sitemapService = new SitemapService();
     _client         = new HttpClient();
     _repository     = new Repository();
 }
 public SitemapController(ISitemapService sitemapService, IOrchardServices services)
 {
     _services       = services;
     _sitemapService = sitemapService;
 }
Example #17
0
 public SEOController(ISitemapService sitemapService, SEOSettings seoSettings)
 {
     _sitemapService = sitemapService;
     _seoSettings    = seoSettings;
 }
Example #18
0
 public static SitemapEntry GetEntry(this ISitemapService service, string url, string provider)
 {
     return(service.GetEntry(x => x.Url == url && x.ProviderName == provider));
 }
Example #19
0
 public SitemapCreateJob()
 {
     sitemapService = new SitemapService();
 }
Example #20
0
 public EgoController()
 {
     SitemapService = new SitemapService();
 }
 public HomeController(ISitemapService sitemapService)
 {
     this.sitemapService = sitemapService;
 }
Example #22
0
 public SitemapManager(ISitemapService sitemapService, IAdvertService advertService, ILogger <SitemapManager> logger)
 {
     _sitemapService = sitemapService;
     _advertService  = advertService;
     _logger         = logger;
 }
Example #23
0
 public SiteMapController(ISitemapService siteMapService,
                          IXmlSerializerService xmlSerializer)
 {
     _siteMapService = siteMapService;
     _xmlSerializer  = xmlSerializer;
 }
Example #24
0
 public SitemapGrabberManager(ISitemapService sitemapService, IAdJobsService adJobsService)
 {
     _sitemapService = sitemapService;
     _adJobsService  = adJobsService;
 }
Example #25
0
 public SEOController(ISitemapService sitemapService, SEOSettings seoSettings)
 {
     _sitemapService = sitemapService;
     _seoSettings = seoSettings;
 }
 public DefaultPagesApiOperations(IPagesService pages, IPageService page, IContentService content, IWidgetService widget, IWidgetsService widgets,
                                  IRedirectsService redirects, IRedirectService redirect, Sitemap.ISitemapService sitemap, ISitemapsService sitemaps, ISitemapService sitemapNew)
 {
     Pages      = pages;
     Page       = page;
     Content    = content;
     Widget     = widget;
     Widgets    = widgets;
     Redirect   = redirect;
     Redirects  = redirects;
     Sitemap    = sitemap;
     Sitemaps   = sitemaps;
     SitemapNew = sitemapNew;
 }
Example #27
0
 public SitemapViewModel(ISitemapService sitemapService)
 {
     SitemapService = sitemapService;
 }
 public CronController(ISitemapService sitemapService, IPostService postService, ICategoryService categoryService)
 {
     _sitemapService  = sitemapService;
     _postService     = postService;
     _categoryService = categoryService;
 }
Example #29
0
 public SitemapModule(ISitemapService sitemapService)
 {
     this.sitemapService  = sitemapService;
     this.Get["/sitemap"] = this.GetSitemap;
 }
 public SitemapController(ISitemapService _sitemapService,IGoogleSitemapService _googleSitemapService)
 {
     sitemapService = _sitemapService;
     googleSitemapService = _googleSitemapService;
 }
Example #31
0
 public SitemapController(IShapeFactory shapeFactory, ISitemapService sitemapService)
 {
     Shape           = shapeFactory;
     _sitemapService = sitemapService;
 }
Example #32
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SitemapsService" /> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="sitemapService">The sitemap service.</param>
 public SitemapsService(IRepository repository, ISitemapService sitemapService)
 {
     this.repository     = repository;
     this.sitemapService = sitemapService;
 }
Example #33
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PageService" /> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="unitOfWork">The unit of work.</param>
 /// <param name="pagePropertiesService">The page properties service.</param>
 /// <param name="pageExistsService">The page exists service.</param>
 /// <param name="pageContentsService">The page contents service.</param>
 /// <param name="pageContentService">The page content service.</param>
 /// <param name="urlService">The URL service.</param>
 /// <param name="fileUrlResolver">The file URL resolver.</param>
 /// <param name="pageTranslationsService">The page translations service.</param>
 /// <param name="masterPageService">The master page service.</param>
 /// <param name="pageService">The page service.</param>
 /// <param name="sitemapService">The sitemap service.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="accessControlService">The access control service.</param>
 public PageService(
     IRepository repository,
     IUnitOfWork unitOfWork,
     IPagePropertiesService pagePropertiesService,
     IPageExistsService pageExistsService,
     IPageContentsService pageContentsService,
     IPageContentService pageContentService,
     IUrlService urlService,
     IMediaFileUrlResolver fileUrlResolver,
     IPageTranslationsService pageTranslationsService,
     IMasterPageService masterPageService,
     Module.Pages.Services.IPageService pageService,
     ISitemapService sitemapService,
     ITagService tagService,
     IAccessControlService accessControlService)
 {
     this.pageContentsService = pageContentsService;
     this.pageContentService = pageContentService;
     this.pagePropertiesService = pagePropertiesService;
     this.pageExistsService = pageExistsService;
     this.repository = repository;
     this.urlService = urlService;
     this.fileUrlResolver = fileUrlResolver;
     this.pageTranslationsService = pageTranslationsService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetSitemapHistoryCommand" /> class.
 /// </summary>
 /// <param name="sitemapService">The sitemap service.</param>
 public GetSitemapHistoryCommand(ISitemapService sitemapService, ICmsConfiguration cmsConfiguration)
 {
     this.sitemapService   = sitemapService;
     this.cmsConfiguration = cmsConfiguration;
 }
 public SitemapController(ILifetimeScope container)
 {
     _logger         = container.Resolve <ILogger <SitemapController> >();
     _sitemapService = container.Resolve <ISitemapService>();
 }
Example #36
0
 public static ISitemapProvider GetHandler(this ISitemapService service, string name)
 {
     return(service.GetHandlers().SingleOrDefault(x => x.Name == name));
 }
 public SitemapSearchService(Func <ISitemapRepository> repositoryFactory, ISitemapService sitemapService, IPlatformMemoryCache platformMemoryCache)
 {
     _repositoryFactory   = repositoryFactory;
     _sitemapService      = sitemapService;
     _platformMemoryCache = platformMemoryCache;
 }
Example #38
0
 public HomeController(IAzureSearchService azureSearchService, IPostedItemService postedItemService, ISitemapService sitemapService, IConfigurationService configurationService) : base()
 {
     _sitemapService       = sitemapService;
     _azureSearchService   = azureSearchService;
     _postedItemService    = postedItemService;
     _configurationService = configurationService;
 }
Example #39
0
 public SitemapCreateJob()
 {
     sitemapService = new SitemapService();
 }
Example #40
0
 public SitemapController(ISitemapService sitemapService)
 {
     _sitemapService = sitemapService;
 }
 public SitemapXmlController()
 {
     _sitemapService = new SitemapService();
 }
Example #42
0
 public HomeController(ISitemapService sitemapService)
 {
     this.sitemapService = sitemapService;
 }
Example #43
0
 public WebsiteAnalyzer(IWebpageAnalyzer webpageAnalyzer, ISitemapService sitemapService)
 {
     _webpageAnalyzer = webpageAnalyzer;
     _sitemapService  = sitemapService;
 }
Example #44
0
 public HomeController(ISitemapService sitemapService, ILogger <HomeController> logger)
 {
     this.sitemapService = sitemapService;
     this.logger         = logger;
 }
Example #45
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SitemapsService" /> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="sitemapService">The sitemap service.</param>
 public SitemapsService(IRepository repository, ISitemapService sitemapService)
 {
     this.repository = repository;
     this.sitemapService = sitemapService;
 }
Example #46
0
 public SitemapController(ISitemapService sitemapService, IGetSitemapPath getSitemapPath, Site site)
 {
     _sitemapService = sitemapService;
     _getSitemapPath = getSitemapPath;
     _site           = site;
 }
 public CategoryController(IMapper mapper, ICategoryService categoryService, ISitemapService sitemapService)
 {
     _mapper          = mapper;
     _categoryService = categoryService;
 }