Interface IComponentRenderer
- Namespace
- Sitecore.AspNetCore.SDK.RenderingEngine.Rendering
- Assembly
- Sitecore.AspNetCore.SDK.RenderingEngine.dll
Supports rendering HTML content that can be used in a web page.
public interface IComponentRenderer
Methods
Render(ISitecoreRenderingContext, ViewContext)
Generates the output HTML.
Task<IHtmlContent> Render(ISitecoreRenderingContext renderingContext, ViewContext viewContext)
Parameters
renderingContext
ISitecoreRenderingContextThe current ISitecoreRenderingContext.
viewContext
ViewContextThe current ViewContext.
Returns
- Task<IHtmlContent>
The HTML content to render.