public BlockViewModel(T currentBlock, IEpiServerDependencies epiServerDependencies) { _epiServerDependencies = epiServerDependencies; if (currentBlock == null) { throw new ArgumentNullException("currentBlock"); } CurrentBlock = currentBlock; }
public BlockViewModel(T currentBlock, IEpiServerDependencies epiServerDependencies, DisplayOptionEnum _displayOptionTag) { _epiServerDependencies = epiServerDependencies; DisplayOptionTag = _displayOptionTag; if (currentBlock == null) { throw new ArgumentNullException("currentBlock"); } CurrentBlock = currentBlock; }
private void ProcessFiles(IEpiServerDependencies epiServerDependencies, List<string> jsonFiles) { foreach (var jsonFile in jsonFiles) { using (var streamReader = new StreamReader(jsonFile)) { var json = streamReader.ReadToEnd(); ContentPageData contentPageData; var settings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }; try { contentPageData = JsonConvert.DeserializeObject<ContentPageData>(json, settings); } catch (JsonSerializationException ex) { Logger.Error(string.Format("Invalid Json file {0}", jsonFile), ex); failedNodes = failedNodes + 1; continue; } catch (JsonReaderException ex) { Logger.Error(string.Format("Invalid Json format within {0}", jsonFile), ex); failedNodes = failedNodes + 1; continue; } contentPageData.ParentContentReference = ContentReference.RootPage; var contentPageRepository = new ContentPageRepository(epiServerDependencies); var contentPageReference = contentPageRepository.CreateContentPage(contentPageData); if (contentPageReference == null) { Logger.ErrorFormat("Unable to get create blog page {0} ", contentPageData.PageName); failedNodes = failedNodes + 1; continue; } processedNodes = processedNodes + 1; } } }
public FooterViewModel(IFooterProperties footerProperties, IEpiServerDependencies epiServerDependencies) { Current = footerProperties; _epiServerDependencies = epiServerDependencies; }
public ColourBlockViewModel(ColourBlock currentBlock, IEpiServerDependencies epiServerDependencies, DisplayOptionEnum displayOptionTag) : base(currentBlock, epiServerDependencies, displayOptionTag) { }
public StartPageViewModel(StartPage currentPage, IEpiServerDependencies epiServerDependencies) : base(currentPage) { _epiServerDependencies = epiServerDependencies; }
public ViewModelFactory(IBlockHelper blockHelper, IEpiServerDependencies epiServerDependencies) { _blockHelper = blockHelper; _epiServerDependencies = epiServerDependencies; }
public MenuRepository(IEpiServerDependencies epiServerDependencies) { _epiServerDependencies = epiServerDependencies; }
public PreviewController(DisplayOptions displayOptions, TemplateResolver templateResolver, IEpiServerDependencies epiDependencies) { this.displayOptions = displayOptions; this.templateResolver = templateResolver; this.epiDependencies = epiDependencies; }
public ContentPageRepository(IEpiServerDependencies epiServerDependencies) { _epiServerDependencies = epiServerDependencies; }
public FixturesCode(IEpiServerDependencies epiServerDependencies, ContentAssetHelper contentAssetHelper) { _epiServerDependencies = epiServerDependencies; _contentAssetHelper = contentAssetHelper; }
public TabServiceViewModel(TabServiceBlock currentBlock, IEpiServerDependencies epiServerDependencies) : base(currentBlock, epiServerDependencies) { }
public PortfolioItemViewModel(PortfolioItemBlock currentBlock, IEpiServerDependencies epiServerDependencies) : base(currentBlock, epiServerDependencies) { }
public FixturesCode(IEpiServerDependencies epiServerDependencies, ContentAssetHelper contentAssetHelper) { _epiServerDependencies = epiServerDependencies; _contentAssetHelper = contentAssetHelper; }
public NestedDonutBlockViewModel(NestedDonutBlock currentBlock, IEpiServerDependencies epiServerDependencies, DisplayOptionEnum displayOptionTag) : base(currentBlock, epiServerDependencies, displayOptionTag) { }
public BlockHelper(IEpiServerDependencies epiServerDependencies) { _epiServerDependencies = epiServerDependencies; }
public DonutTwoExampleBlockViewModel(DonutTwoExampleBlock currentBlock, IEpiServerDependencies epiServerDependencies, DisplayOptionEnum displayOptionTag) : base(currentBlock, epiServerDependencies, displayOptionTag) { }
public FooterViewModel(IFooterProperties footerProperties, IEpiServerDependencies epiServerDependencies) { Current = footerProperties; _epiServerDependencies = epiServerDependencies; }
public HeaderViewModel(IHeaderProperties headerProperties, IEpiServerDependencies epiServerDependencies) { Current = headerProperties; _epiServerDependencies = epiServerDependencies; }
public TabPortfolioViewModel(TabPortfolioBlock currentBlock, IEpiServerDependencies epiServerDependencies) : base(currentBlock, epiServerDependencies) { }
public MenuRepository(IEpiServerDependencies epiServerDependencies) { _epiServerDependencies = epiServerDependencies; }
public ViewModelFactory(IBlockHelper blockHelper, IEpiServerDependencies epiServerDependencies) { _blockHelper = blockHelper; _epiServerDependencies = epiServerDependencies; }
public AsideItemViewModel(AsideBlock currentBlock, IEpiServerDependencies epiServerDependencies) : base(currentBlock, epiServerDependencies) { }