public PageController( IBlogCache cache, IBlogPageService blogPageService) { _cache = cache; _blogPageService = blogPageService; }
public BlogPageModel( IBlogPageService blogPageService, IBlogCache cache, IOptions <AppSettings> settingsOptions) { _blogPageService = blogPageService; _cache = cache; _settings = settingsOptions.Value; }
public BlogCacheService(IBlogPageService service) { var config = new MapperConfiguration(cfg => cfg.CreateMap <RenderedPageContent, RenderedPageContent>()); var mapper = config.CreateMapper(); var pagesTemp = new List <RenderedPageContent>(); foreach (var p in service.GetPages()) { var content = service.GetPageContent(p.OrderId); var rendContent = service.RenderPage(content); rendContent.RemoveMarkdownSource(); pagesTemp.Add(rendContent); } _pages = pagesTemp.OrderByDescending(x => x.CreatedDate).ToList(); _pagesWithoutContent = _pages.Select(x => { var y = mapper.Map <RenderedPageContent>(x); y.ContentHtml = null; return(y); }).OrderByDescending(x => x.CreatedDate).ToList(); }
public MetaWeblogService( IBlogConfig blogConfig, ITimeZoneResolver timeZoneResolver, ILogger <MetaWeblogService> logger, ITagService tagService, ICategoryService categoryService, IPostQueryService postQueryService, IPostManageService postManageService, IBlogPageService blogPageService, IBlogImageStorage blogImageStorage, IFileNameGenerator fileNameGenerator) { _blogConfig = blogConfig; _timeZoneResolver = timeZoneResolver; _logger = logger; _tagService = tagService; _categoryService = categoryService; _postQueryService = postQueryService; _blogPageService = blogPageService; _blogImageStorage = blogImageStorage; _fileNameGenerator = fileNameGenerator; _postManageService = postManageService; }
public BlogPagePreviewModel(IBlogPageService blogPageService) { _blogPageService = blogPageService; }
public EditPageModel(IBlogPageService blogPageService) { _blogPageService = blogPageService; PageEditModel = new(); }
public BlogPageModel(IBlogPageService blogPageService) { _blogPageService = blogPageService; }
public BlogPageController(IBlogPageService blogPageService) { _blogPageService = blogPageService; }