示例#1
0
 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;
 }
示例#2
0
 public PageService(
     IProjectService projectService,
     IProjectSecurityResolver security,
     IPageQueries pageQueries,
     IPageCommands pageCommands,
     PageEvents eventHandlers,
     IMediaProcessor mediaProcessor,
     IContentProcessor contentProcessor,
     //IHtmlProcessor htmlProcessor,
     IUrlHelperFactory urlHelperFactory,
     IPageRoutes pageRoutes,
     IMemoryCache cache,
     IStringLocalizer <cloudscribe.SimpleContent.Web.SimpleContent> localizer,
     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;
     this.pageRoutes           = pageRoutes;
     _contentProcessor         = contentProcessor;
     //this.htmlProcessor = htmlProcessor;
     this.cache         = cache;
     this.cacheKeys     = cacheKeys;
     this.eventHandlers = eventHandlers;
     sr = localizer;
 }
示例#3
0
 public PageService(
     IProjectService projectService,
     IPageQueries pageQueries,
     IPageCommands pageCommands,
     PageEvents eventHandlers,
     IMediaProcessor mediaProcessor,
     IContentProcessor contentProcessor,
     IPageUrlResolver pageUrlResolver,
     IMemoryCache cache,
     IStringLocalizer <cloudscribe.SimpleContent.Web.SimpleContent> localizer,
     IPageNavigationCacheKeys cacheKeys,
     IContentHistoryCommands historyCommands,
     ILogger <PageService> logger
     )
 {
     _projectService   = projectService;
     _pageQueries      = pageQueries;
     _pageCommands     = pageCommands;
     _mediaProcessor   = mediaProcessor;
     _pageUrlResolver  = pageUrlResolver;
     _contentProcessor = contentProcessor;
     _cache            = cache;
     _cacheKeys        = cacheKeys;
     _eventHandlers    = eventHandlers;
     _sr = localizer;
     _historyCommands = historyCommands;
     _log             = logger;
 }
        public PageService(
            IProjectService projectService,
            IPageQueries pageQueries,
            IPageCommands pageCommands,
            PageEvents eventHandlers,
            IContentProcessor contentProcessor,
            IStringLocalizer <cloudscribe.SimpleContent.Web.SimpleContent> localizer,
            IContentHistoryCommands historyCommands,
            ILogger <PageService> logger
            )
        {
            _projectService   = projectService;
            _pageQueries      = pageQueries;
            _pageCommands     = pageCommands;
            _contentProcessor = contentProcessor;
            _eventHandlers    = eventHandlers;
            _sr = localizer;
            _historyCommands = historyCommands;

            _log = logger;
        }