Ejemplo n.º 1
0
        public PageTemplateRegionTagBuilder(
            IPageBlockRenderer blockRenderer,
            IPageBlockTypeDataModelTypeFactory pageBlockTypeDataModelTypeFactory,
            IPageBlockTypeFileNameFormatter pageBlockTypeFileNameFormatter,
            IVisualEditorStateService visualEditorStateService,
            ILogger <PageTemplateRegionTagBuilder> logger,
            ViewContext viewContext,
            IEditablePageViewModel pageViewModel,
            string regionName
            )
        {
            if (regionName == null)
            {
                throw new ArgumentNullException(nameof(regionName));
            }
            if (string.IsNullOrWhiteSpace(regionName))
            {
                throw new ArgumentEmptyException(nameof(regionName));
            }
            if (pageViewModel == null)
            {
                throw new ArgumentNullException(nameof(pageViewModel));
            }

            _blockRenderer = blockRenderer;
            _pageBlockTypeDataModelTypeFactory  = pageBlockTypeDataModelTypeFactory;
            _pageBlockTypeTypeFileNameFormatter = pageBlockTypeFileNameFormatter;
            _visualEditorStateService           = visualEditorStateService;
            _logger        = logger;
            _regionName    = regionName;
            _pageViewModel = pageViewModel;
            _viewContext   = viewContext;
        }
Ejemplo n.º 2
0
 public HomepageBlogPostsViewComponent(
     IContentRepository contentRepository,
     IVisualEditorStateService visualEditorStateService
     )
 {
     _contentRepository        = contentRepository;
     _visualEditorStateService = visualEditorStateService;
 }
Ejemplo n.º 3
0
 public SidebarCategoriesViewComponent(
     ICustomEntityRepository customEntityRepository,
     IVisualEditorStateService visualEditorStateService
     )
 {
     _customEntityRepository   = customEntityRepository;
     _visualEditorStateService = visualEditorStateService;
 }
Ejemplo n.º 4
0
 public SidebarCategoriesViewComponent(
     IContentRepository contentRepository,
     IVisualEditorStateService visualEditorStateService
     )
 {
     _contentRepository        = contentRepository;
     _visualEditorStateService = visualEditorStateService;
 }
 public EntitiesListViewComponent(
     ICustomEntityRepository customEntityRepository,
     IImageAssetRepository imageAssetRepository,
     IVisualEditorStateService visualEditorStateService
     )
 {
     _customEntityRepository   = customEntityRepository;
     _imageAssetRepository     = imageAssetRepository;
     _visualEditorStateService = visualEditorStateService;
 }
Ejemplo n.º 6
0
 public BlogPostListViewComponent(
     IContentRepository contentRepository,
     IPageResponseDataCache pageRenderDataCache,
     IVisualEditorStateService visualEditorStateService
     )
 {
     _contentRepository        = contentRepository;
     _pageRenderDataCache      = pageRenderDataCache;
     _visualEditorStateService = visualEditorStateService;
 }
Ejemplo n.º 7
0
 public HomepageBlogPostsViewComponent(
     ICustomEntityRepository customEntityRepository,
     IImageAssetRepository imageAssetRepository,
     IVisualEditorStateService visualEditorStateService
     )
 {
     _customEntityRepository   = customEntityRepository;
     _imageAssetRepository     = imageAssetRepository;
     _visualEditorStateService = visualEditorStateService;
 }
Ejemplo n.º 8
0
 public BlogPostListViewComponent(
     ICustomEntityRepository customEntityRepository,
     IImageAssetRepository imageAssetRepository,
     IPageResponseDataCache pageRenderDataCache,
     IVisualEditorStateService visualEditorStateService
     )
 {
     _customEntityRepository   = customEntityRepository;
     _imageAssetRepository     = imageAssetRepository;
     _pageRenderDataCache      = pageRenderDataCache;
     _visualEditorStateService = visualEditorStateService;
 }
Ejemplo n.º 9
0
 public InitStateRoutingStep(
     IUserContextService userContextService,
     ContentSettings contentSettings,
     IExecutionContextFactory executionContextFactory,
     IVisualEditorStateService visualEditorStateService
     )
 {
     _userContextService       = userContextService;
     _contentSettings          = contentSettings;
     _executionContextFactory  = executionContextFactory;
     _visualEditorStateService = visualEditorStateService;
 }
Ejemplo n.º 10
0
 public PageTemplateRegionTagBuilderFactory(
     IPageBlockRenderer pageBlockRenderer,
     IPageBlockTypeDataModelTypeFactory pageBlockTypeDataModelTypeFactory,
     IPageBlockTypeFileNameFormatter pageBlockTypeFileNameFormatter,
     IVisualEditorStateService visualEditorStateService,
     ILoggerFactory loggerFactory
     )
 {
     _pageBlockRenderer = pageBlockRenderer;
     _pageBlockTypeDataModelTypeFactory = pageBlockTypeDataModelTypeFactory;
     _pageBlockTypeFileNameFormatter    = pageBlockTypeFileNameFormatter;
     _visualEditorStateService          = visualEditorStateService;
     _loggerFactory = loggerFactory;
 }
 public InitVisualEditorStateRoutingStep(
     IVisualEditorStateService visualEditorStateService
     )
 {
     _visualEditorStateService = visualEditorStateService;
 }