Exemplo n.º 1
0
 public LightcoreHtmlHelper(IHtmlHelper htmlHelper)
 {
     _htmlHelper                = htmlHelper;
     _renderFieldPipeline       = htmlHelper.ViewContext.HttpContext.RequestServices.GetRequiredService <RenderFieldPipeline>();
     _renderPlaceholderPipeline = htmlHelper.ViewContext.HttpContext.RequestServices.GetRequiredService <RenderPlaceholderPipeline>();
 }
Exemplo n.º 2
0
 public LightcoreHtmlHelper(IHtmlHelper htmlHelper)
 {
     _htmlHelper = htmlHelper;
     _renderFieldPipeline = htmlHelper.ViewContext.HttpContext.RequestServices.GetRequiredService<RenderFieldPipeline>();
     _renderPlaceholderPipeline = htmlHelper.ViewContext.HttpContext.RequestServices.GetRequiredService<RenderPlaceholderPipeline>();
 }