public PageService( IProjectService projectService, IProjectSecurityResolver security, IPageQueries pageQueries, IPageCommands pageCommands, PageEvents eventHandlers, IMediaProcessor mediaProcessor, IUrlHelperFactory urlHelperFactory, IMemoryCache cache, IPageNavigationCacheKeys cacheKeys, IActionContextAccessor actionContextAccesor, IHttpContextAccessor contextAccessor = null) { this.projectService = projectService; this.security = security; this.pageQueries = pageQueries; this.pageCommands = pageCommands; context = contextAccessor?.HttpContext; this.mediaProcessor = mediaProcessor; this.urlHelperFactory = urlHelperFactory; this.actionContextAccesor = actionContextAccesor; htmlProcessor = new HtmlProcessor(); this.cache = cache; this.cacheKeys = cacheKeys; this.eventHandlers = eventHandlers; }
public BlogService( IProjectService projectService, IProjectSecurityResolver security, IPostQueries postQueries, IPostCommands postCommands, IMediaProcessor mediaProcessor, IBlogRoutes blogRoutes, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccesor, IHttpContextAccessor contextAccessor = null) { this.security = security; this.postQueries = postQueries; this.postCommands = postCommands; context = contextAccessor?.HttpContext; this.mediaProcessor = mediaProcessor; this.urlHelperFactory = urlHelperFactory; this.actionContextAccesor = actionContextAccesor; this.projectService = projectService; htmlProcessor = new HtmlProcessor(); this.blogRoutes = blogRoutes; }