Table of Contents

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 ISitecoreRenderingContext

The current ISitecoreRenderingContext.

viewContext ViewContext

The current ViewContext.

Returns

Task<IHtmlContent>

The HTML content to render.