本文整理汇总了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;
}
示例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);
}
示例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;
}
示例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";
}
示例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);
}
示例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;
}
示例7: BaseArticleViewModel
public BaseArticleViewModel(INewsService newService)
{
if (newService == null)
throw new ArgumentNullException("newsService");
this.newService = newService;
this.State = LoadingStates.NormalState;
}
示例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;
}
示例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");
}
示例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;
}
示例11: NewsController
public NewsController(IShapeFactory shapeFactory
, INewsService newsService
, INewsTypeService newsTypeService
, IOrchardServices services)
{
_newsService = newsService;
_newsTypeService = newsTypeService;
_services = services;
Shape = shapeFactory;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}