public PageRenderer(TemplatePage page, IPageLookup pageLookup) { this.razorPage = page; this.pageLookup = pageLookup; _htmlEncoder = HtmlEncoder.Default; _bufferScope = new MemoryPoolViewBufferScope(); ViewStartPages = new List <TemplatePage>(); PreRenderCallbacks = new PreRenderActionList(); }
public RazorLightEngine(IEngineCore core, IPageLookup pagelookup) { if (core == null) { throw new ArgumentNullException(nameof(core)); } if (pagelookup == null) { throw new ArgumentNullException(); } this.core = core; this.pageLookup = pagelookup; this.Configuration = core.Configuration; }
public MenuItemCollection(IPageLookup pageLookup, IMenuStore iMenuStore) { _pageLookup = pageLookup; _iMenuStore = iMenuStore; }