当前位置: 首页>>代码示例>>C#>>正文


C# INewsService类代码示例

本文整理汇总了C#中INewsService的典型用法代码示例。如果您正苦于以下问题:C# INewsService类的具体用法?C# INewsService怎么用?C# INewsService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


INewsService类属于命名空间,在下文中一共展示了INewsService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FatecController

		public FatecController(
			INewsService newsService, IFatecService fatecService, IWorkContext workContext)
		{
			_newsService = newsService;
			_fatecService = fatecService;
			_workContext = workContext;
		}
开发者ID:vitorsalgado,项目名称:fatec-mobile,代码行数:7,代码来源:FatecController.cs

示例2: RobotsTxtManager

 public RobotsTxtManager(
     ISettingService settingService,
     ILocalizationService localizationService,
     LocalizationSettings localizationSettings,
     IStoreContext storeContext,
     ILanguageService languageService,
     IBlogService blogService,
     INewsService newsService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     ITopicService topicService,
     IVendorService vendorService,
     IProductService productService)
 {
     _settingService = settingService;
     _localizationService = localizationService;
     _localizationSettings = localizationSettings;
     _storeContext = storeContext;
     _languageService = languageService;
     _blogService = blogService;
     _newsService = newsService;
     _categoryService = categoryService;
     _manufacturerService = manufacturerService;
     _topicService = topicService;
     _vendorService = vendorService;
     _productService = productService;
     _storeId = _storeContext.CurrentStore.Id;
     _languages = _languageService.GetAllLanguages(storeId: _storeId);
 }
开发者ID:ilich,项目名称:Nop.Plugin.Misc.CustomRobotsTxt,代码行数:29,代码来源:RobotsTxtManager.cs

示例3: SettingsViewModel

        public SettingsViewModel(IShell shell, ISettingsService settingsService, ICacheService cacheService, IBoard board, INewsService newsService) {
            Shell = shell;
            Board = board;
            SettingsService = settingsService;
            CacheService = cacheService;
            AvailableLanguages = new ObservableCollection<CultureInfo>(
                new[] { "en-US", "ru" }.Select(l => new CultureInfo(l)));
            CurrentLanguage = CultureInfo.CurrentUICulture;
            currentLanguageIndex = AvailableLanguages.IndexOf(CurrentLanguage);
            Application.Current.Suspending += ApplyLanguage;

            FontScale = SettingsService.FontScale;

            AvailableThemes = new ObservableCollection<Theme>(Utils.GetEnumValues<Theme>());
            CurrentThemeIndex = AvailableThemes.IndexOf(SettingsService.CurrentTheme);

            AvailableRepliesDisplayModes =
                new ObservableCollection<RepliesDisplayMode>(Utils.GetEnumValues<RepliesDisplayMode>());

            Version = CreateVersion();
            IsRedstoneBuild = Utils.IsRedstone();

            SetupMediaDownloadFolder();

            AvailableDomains = new ObservableCollection<string>(board.UrlService.AvailableDomains);
            CurrentDomainIndex = SettingsService.CurrentDomain == "" ? 0 : AvailableDomains.IndexOf(SettingsService.CurrentDomain);

            NewsService = newsService;
        }
开发者ID:acedened,项目名称:TheChan,代码行数:29,代码来源:SettingsViewModel.cs

示例4: NewsController

        public NewsController(IRssParserService rssParserService, INewsService newsService, IConfigurationService configurationService)
			: base(configurationService)
        {
            _rssParserService = rssParserService;
            _newsService = newsService;
            _useRssDataSource = configurationService.GetSetting(string.Empty, "NewsDataSource", "Dictionaries", "AppSettings", "General", "News").ToLower() == "rss";
        }
开发者ID:evkap,项目名称:MetaPortal,代码行数:7,代码来源:NewsController.cs

示例5: NewsController

 public NewsController(INewsService newsService, INewsMappingService newsMappingService, UserFactory userFactory)
 {
     this._newsService = newsService;
     this._newsMappingService = newsMappingService;
     this._userFactory = userFactory;
     this._userId = _userFactory.GetUserId(User.Identity.Name);
 }
开发者ID:huuphuu,项目名称:pendesignvn,代码行数:7,代码来源:NewsController.cs

示例6: NewsController

        public NewsController(INewsService newsService, 
            IWorkContext workContext, IStoreContext storeContext, 
            IPictureService pictureService, ILocalizationService localizationService,
            IDateTimeHelper dateTimeHelper,
            IWorkflowMessageService workflowMessageService, IWebHelper webHelper,
            ICacheManager cacheManager, ICustomerActivityService customerActivityService,
            IStoreMappingService storeMappingService,
            MediaSettings mediaSettings, NewsSettings newsSettings,
            LocalizationSettings localizationSettings, CustomerSettings customerSettings,
            CaptchaSettings captchaSettings)
        {
            this._newsService = newsService;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;
            this._workflowMessageService = workflowMessageService;
            this._webHelper = webHelper;
            this._cacheManager = cacheManager;
            this._customerActivityService = customerActivityService;
            this._storeMappingService = storeMappingService;

            this._mediaSettings = mediaSettings;
            this._newsSettings = newsSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings = customerSettings;
            this._captchaSettings = captchaSettings;
        }
开发者ID:aleks279,项目名称:atrend-test,代码行数:29,代码来源:NewsController.cs

示例7: BaseArticleViewModel

        public BaseArticleViewModel(INewsService newService)
        {
            if (newService == null)
                throw new ArgumentNullException("newsService");

            this.newService = newService;
            this.State = LoadingStates.NormalState;
        }
开发者ID:Displayedd,项目名称:PrismWpfApplication,代码行数:8,代码来源:BaseArticleViewModel.cs

示例8: TblDataService

 public TblDataService(INewsService newsService, IFixtureService fixtureService, ITeamService teamService, ICompetitionService competitionService, IStatsReportingService statsReportingService, IPlayerService playerService)
 {
     this.newsService        = newsService;
     this.fixtureService     = fixtureService;
     this.teamService        = teamService;
     this.competitionService = competitionService;
     this.statsReportingService       = statsReportingService;
     this.playerService      = playerService;
 }
开发者ID:philjhale,项目名称:TeessideBasketballLeague,代码行数:9,代码来源:TblDataService.svc.cs

示例9: NewsController

        public NewsController(IUserService userService, INewsService newsService, INewsTagService newsTagService, INewsFileService newsFileService)
        {
            _newsService = newsService;
            _newsTagService = newsTagService;
            _newsFileService = newsFileService;
            _userService = userService;

            ViewBag.IsAdmin = _userService.IsUserInRole("Admin");
        }
开发者ID:BucketheadZzz,项目名称:testApp,代码行数:9,代码来源:NewsController.cs

示例10: NewsController

        public NewsController(INewsCategoryService newsCategoryService, INewsService newsService
            )
        {
            this._newsCategoryService = newsCategoryService;
            this._newsService = newsService;

            this.LanguageId = int.Parse(Cookies.ReadCookie("PenDesign:Language", "129"));

            ItemPerPage = AppSettings.ItemsPerPage;
        }
开发者ID:huuphuu,项目名称:pendesignvn,代码行数:10,代码来源:NewsController.cs

示例11: NewsController

 public NewsController(IShapeFactory shapeFactory
     , INewsService newsService
     , INewsTypeService newsTypeService
     , IOrchardServices services)
 {
     _newsService = newsService;
     _newsTypeService = newsTypeService;
     _services = services;
     Shape = shapeFactory;
 }
开发者ID:BelitsoftLLC,项目名称:orchard-news,代码行数:10,代码来源:NewsArticleController.cs

示例12: BackwardCompatibility2XController

 public BackwardCompatibility2XController(IProductService productService,
     ICategoryService categoryService, IManufacturerService manufacturerService,
     INewsService newsService, IBlogService blogService)
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._newsService = newsService;
     this._blogService = blogService;
 }
开发者ID:vic0626,项目名称:nas-merk,代码行数:10,代码来源:BackwardCompatibility2XController.cs

示例13: HomeController

 public HomeController(IBannerService bannerService, IProductService productService, IProServiceService proServiceService, INewsService newsService, IFaqService faqService, IGalleryService galleryService, ISettingService settingService, IContactService contactService, IPageService pageService, IUnitOfWork uow)
     : base(settingService, contactService, pageService, proServiceService, uow)
 {
     _bannerService = bannerService;
     _productService = productService;
     _proServiceService = proServiceService;
     _newsService = newsService;
     _faqService = faqService;
     _galleryService = galleryService;
     _pageService = pageService;
     _contactService = contactService;
 }
开发者ID:AGurel,项目名称:PortalProject,代码行数:12,代码来源:HomeController.cs

示例14: NewsController

 public NewsController(INewsService newsService, ILanguageService languageService,
     IDateTimeHelper dateTimeHelper, ICustomerContentService customerContentService,
     ILocalizationService localizationService, IPermissionService permissionService,
     AdminAreaSettings adminAreaSettings)
 {
     this._newsService = newsService;
     this._languageService = languageService;
     this._dateTimeHelper = dateTimeHelper;
     this._customerContentService = customerContentService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._adminAreaSettings = adminAreaSettings;
 }
开发者ID:pquic,项目名称:qCommerce,代码行数:13,代码来源:NewsController.cs

示例15: HomeController

 public HomeController(INewsService newsService,
     ICompetitionService competitionService,
     IStatsReportingService statsReportingService,
     IFixtureService fixtureService,
     IEventService eventService,
     ICupService cupService)
 {
     this.newsService           = newsService;
     this.competitionService    = competitionService;
     this.statsReportingService = statsReportingService;
     this.fixtureService        = fixtureService;
     this.eventService          = eventService;
     this.cupService            = cupService;
 }
开发者ID:philjhale,项目名称:TeessideBasketballLeague,代码行数:14,代码来源:HomeController.cs


注:本文中的INewsService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。