Exemplo n.º 1
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;
        }
Exemplo n.º 2
0
 public HomeController(IRobotsService robotsService,
                       IManifestService manifestService,
                       IContactUsService contactUsService,
                       IUserSettingsService userSettingsService,
                       IUserProfileService userProfileService,
                       ILogService logService, IMapper mapper,
                       IVideoAttributesService videoAttributesService,
                       IBannerDetailsService bannerDetailsService,
                       ISitemapService sitemapService,
                       IOpenSearchService openSearchService,
                       IBrowserConfigService browserConfigService,
                       IFeedService feedService)
     : base(logService, mapper)
 {
     _videoAttributesService = videoAttributesService;
     _mapper = mapper;
     _userSettingsService  = userSettingsService;
     _userProfileService   = userProfileService;
     _bannerDetailsService = bannerDetailsService;
     _contactUsService     = contactUsService;
     _manifestService      = manifestService;
     _robotsService        = robotsService;
     _sitemapService       = sitemapService;
     _openSearchService    = openSearchService;
     _browserConfigService = browserConfigService;
     _feedService          = feedService;
 }
Exemplo n.º 3
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;
        }
Exemplo n.º 4
0
 public HomeController(
     IManifestService manifestService,
     IBrowserConfigService browserConfigService)
 {
     _manifestService = manifestService;
     _browserConfigService = browserConfigService;
 }
Exemplo n.º 5
0
        // $End-Sitemap$

        #endregion

        #region Constructors

        public HomeController(
            // $Start-Windows81IE11EdgeFavicon$
            IBrowserConfigService browserConfigService,
            // $End-Windows81IE11EdgeFavicon$
            // $Start-Feed$
            // $Start-TargetFramework-NetFramework$
#if NET461
            // 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.
            // $End-TargetFramework-NetFramework$
            IFeedService feedService,
            // $Start-TargetFramework-NetFramework$
#endif
            // $End-TargetFramework-NetFramework$
            // $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$
            // $Start-TargetFramework-NetFramework$
#if NET461
            // 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.
            // $End-TargetFramework-NetFramework$
            this.feedService = feedService;
            // $Start-TargetFramework-NetFramework$
#endif
            // $End-TargetFramework-NetFramework$
            // $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$
        }
Exemplo n.º 6
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IManifestService manifestService,
     IOptions <AppSettings> appSettings)
 {
     this.appSettings          = appSettings;
     this.browserConfigService = browserConfigService;
     this.manifestService      = manifestService;
 }
Exemplo n.º 7
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IManifestService manifestService,
     IRobotsService robotsService)
 {
     _browserConfigService = browserConfigService;
     _manifestService = manifestService;
     _robotsService = robotsService;
 }
 public HomeController(
     IBrowserConfigService browserConfigService,
     IManifestService manifestService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     this.browserConfigService = browserConfigService;
     this.manifestService = manifestService;
     this.robotsService = robotsService;
     this.sitemapService = sitemapService;
 }
        // $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$
        }
Exemplo n.º 10
0
 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;
 }
 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;
 }
Exemplo n.º 12
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IManifestService manifestService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService,
     IOptions <AppSettings> appSettings)
 {
     _appSettings          = appSettings;
     _browserConfigService = browserConfigService;
     _manifestService      = manifestService;
     _openSearchService    = openSearchService;
     _robotsService        = robotsService;
     _sitemapService       = sitemapService;
 }
 public HomeController(
     IBrowserConfigService browserConfigService,
     IFeedService feedService,
     IManifestService manifestService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     _browserConfigService = browserConfigService;
     _feedService          = feedService;
     _manifestService      = manifestService;
     _openSearchService    = openSearchService;
     _robotsService        = robotsService;
     _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;
     if (_dbContext == null)
     {
         if (string.IsNullOrEmpty(NewsConnectionString))
         {
             throw new System.Exception("Connection string is not corrected....");
         }
         _dbContext = new FrontendDbContext(NewsConnectionString);
     }
 }