public HtmlHelper([NotNull] HtmlPage page)
 {
     if (page == null)
     {
         throw new ArgumentNullException(nameof(page));
     }
     _page = page;
 }
Exemplo n.º 2
0
        /// <exclude />
        public void Assign(HtmlPage parentPage)
        {
            Request          = parentPage.Request;
            Response         = parentPage.Response;
            AppPath          = parentPage.AppPath;
            DashboardOptions = parentPage.DashboardOptions;
            Url = parentPage.Url;

            GenerationTime = parentPage.GenerationTime;
        }
 public NonEscapedString RenderPartial(HtmlPage partialPage)
 {
     partialPage.Assign(_page);
     return(new NonEscapedString(partialPage.ToString()));
 }