Example #1
0
        /// <exclude />
        public void Assign(RazorPage parentPage)
        {
            Request = parentPage.Request;
            Response = parentPage.Response;
            Storage = parentPage.Storage;
            AppPath = parentPage.AppPath;
            Url = parentPage.Url;

            GenerationTime = parentPage.GenerationTime;
            _statisticsLazy = parentPage._statisticsLazy;
        }
Example #2
0
 public NonEscapedString RenderPartial(RazorPage partialPage)
 {
     partialPage.Assign(_page);
     return(new NonEscapedString(partialPage.ToString()));
 }
Example #3
0
 protected NonEscapedString RenderPartial(RazorPage page)
 {
     page.Execute();
     return(new NonEscapedString(page._content.ToString()));
 }
Example #4
0
 public NonEscapedString RenderPartial(RazorPage partialPage)
 {
     partialPage.Assign(_page);
     return new NonEscapedString(partialPage.ToString());
 }
Example #5
0
 public HtmlHelper([NotNull] RazorPage page)
 {
     if (page == null) throw new ArgumentNullException("page");
     _page = page;
 }
Example #6
0
 protected NonEscapedString RenderPartial(RazorPage page)
 {
     page.Execute();
     return new NonEscapedString(page._content.ToString());
 }