public ArticleUrlService(IArticleService articleService,
                          IArticleListWidgetService articleListWidgetService,
                          IArticleTypeService articleTypeService)
 {
     _articleService           = articleService;
     _articleListWidgetService = articleListWidgetService;
     _articleTypeService       = articleTypeService;
 }
 public ArticleListWidgetService(IWidgetBasePartService widgetService, IArticleTypeService articleTypeService,
                                 IArticleService articleService, IApplicationContext applicationContext, IPageService pageService, CMSDbContext dbContext)
     : base(widgetService, applicationContext, dbContext)
 {
     _articleTypeService = articleTypeService;
     _articleService     = articleService;
     _pageService        = pageService;
 }
 public ArticleTopWidgetService(IWidgetBasePartService widgetService,
                                IArticleService articleService,
                                IApplicationContext applicationContext,
                                IArticleTypeService articleTypeService) : base(widgetService, applicationContext)
 {
     _articleService     = articleService;
     _articleTypeService = articleTypeService;
 }
Exemple #4
0
 public ArticleTypeWidgetService(IWidgetBasePartService widgetService,
                                 IArticleTypeService articleTypeService,
                                 IApplicationContext applicationContext,
                                 ICacheManager <ConcurrentDictionary <string, object> > cacheManager,
                                 CMSDbContext dbContext)
     : base(widgetService, applicationContext, dbContext)
 {
     _articleTypeService = articleTypeService;
     _allRelatedUrlCache = cacheManager.GetOrAdd(ArticleTypeWidgetRelatedPageUrls, new ConcurrentDictionary <string, object>());
 }
Exemple #5
0
 public ArticleApiService(IArticleService articleService,
                          IAuthorizer authorizer,
                          IArticleTypeService articleTypeService,
                          IHtmlSanitizer htmlSanitizer)
 {
     _articleService     = articleService;
     _authorizer         = authorizer;
     _articleTypeService = articleTypeService;
     _htmlSanitizer      = htmlSanitizer;
 }
 public ArticleTypeController(IArticleTypeService articleTypeService,
                              IUserService userService,
                              IExceptionService exceptionService,
                              IHostingEnvironment environment,
                              IAttachmentTypeService attachmentTypeService,
                              IAttachmentService attachmentService,
                              IMemoryCache memoryCache,
                              IMapper mapper) : base(userService, exceptionService, environment, attachmentTypeService, attachmentService, memoryCache)
 {
     _articleTypeService = articleTypeService;
     _mapper             = mapper;
 }
 public ArticlesController(
     IArticleService articleService,
     IGameService gameService,
     IReviewService reviewService,
     IUserService userService,
     IArticleTypeService articleTypeService,
     IAuthorService authorService,
     IImageTypeService imageTypeService
     )
 {
     _articleService     = articleService;
     _gameService        = gameService;
     _reviewService      = reviewService;
     _userService        = userService;
     _articleTypeService = articleTypeService;
     _authorService      = authorService;
     _imageTypeService   = imageTypeService;
 }
 public override void OnActionExecuting(ActionExecutingContext filterContext)
 {
     _articleTypeService = _articleTypeService ?? ServiceLocator.Current.GetInstance <IArticleTypeService>();
     filterContext.Controller.ViewData[ViewDataKeys.ArticleCategory] = new SelectList(_articleTypeService.Get(), "ID", "Title");
 }
 public ArticlePageSiteUrlProvider(SitemapDbContext sitemapDbContext, IArticleService articleService, IArticleTypeService articleTypeService)
 {
     _sitemapDbContext   = sitemapDbContext;
     _articleService     = articleService;
     _articleTypeService = articleTypeService;
 }
 public ArticleTypeWidgetService(IWidgetBasePartService widgetService, IArticleTypeService articleTypeService, IApplicationContext applicationContext, ArticleDbContext dbContext)
     : base(widgetService, applicationContext, dbContext)
 {
     _articleTypeService = articleTypeService;
 }
Exemple #11
0
 public override void OnActionExecuting(ActionExecutingContext filterContext)
 {
     _articleTypeService = _articleTypeService ?? new ServiceLocator().GetService <IArticleTypeService>();
     (filterContext.Controller as Controller)
     .ViewData[ViewDataKeys.ArticleCategory] = new SelectList(_articleTypeService.GetAll(), "ID", "Title");
 }
 public ArticleTypesController(IArticleTypeService articleTypeService)
 {
     _articleTypeService = articleTypeService;
 }
Exemple #13
0
 public ArticleTypesViewComponent(IArticleTypeService articleTypeService, IMapper mapper)
 {
     _articleTypeService = articleTypeService;
     _mapper             = mapper;
 }
 public ArticlePageSiteUrlProvider(IHttpContextAccessor httpContextAccessor, SitemapDbContext sitemapDbContext, IArticleService articleService, IArticleTypeService articleTypeService)
 {
     _httpContextAccessor = httpContextAccessor;
     _sitemapDbContext    = sitemapDbContext;
     _articleService      = articleService;
     _articleTypeService  = articleTypeService;
 }
Exemple #15
0
 public ArticleController(IArticleTypeService articleType, IArticleService articleService)
 {
     _ArticleTypeService = articleType;
     _ArticleService     = articleService;
 }
 public ArticleTypeApiService(IArticleTypeService articleTypeService)
 {
     _articleTypeService = articleTypeService;
 }
 public ArticleApiService(IArticleService articleService, IAuthorizer authorizer, IArticleTypeService articleTypeService)
 {
     _articleService     = articleService;
     _authorizer         = authorizer;
     _articleTypeService = articleTypeService;
 }
 public GetAllArticleTypesQueryHandler(ILogger <IRequest> logger, IArticleTypeService articleTypeService)
 {
     _logger             = logger;
     _articleTypeService = articleTypeService;
 }
Exemple #19
0
 public ArticleTypeRouteDataProvider(IArticleTypeService articleTypeService)
 {
     _articleTypeService = articleTypeService;
 }
Exemple #20
0
 public EditArticleTypeCommandHandler(IArticleTypeService articleTypeService, IArticleTypeMapper articleTypeMapper, ILogger <IRequest> logger)
 {
     _articleTypeService = articleTypeService;
     _articleTypeMapper  = articleTypeMapper;
     _logger             = logger;
 }