Exemple #1
0
        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();
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 public MenuItemCollection(IPageLookup pageLookup, IMenuStore iMenuStore)
 {
     _pageLookup = pageLookup;
     _iMenuStore = iMenuStore;
 }