Table of Contents

Class ComponentRendererFactory

Namespace
Sitecore.AspNetCore.SDK.RenderingEngine.Rendering
Assembly
Sitecore.AspNetCore.SDK.RenderingEngine.dll

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public class ComponentRendererFactory : IComponentRendererFactory
Inheritance
ComponentRendererFactory
Implements
Inherited Members

Constructors

ComponentRendererFactory(IOptions<RenderingEngineOptions>, IServiceProvider)

Initializes a new instance of the ComponentRendererFactory class.

public ComponentRendererFactory(IOptions<RenderingEngineOptions> options, IServiceProvider services)

Parameters

options IOptions<RenderingEngineOptions>

The RenderingEngineOptions for this instance.

services IServiceProvider

The services used for component renderer resolution.

Methods

GetRenderer(Component)

Retrieves an IComponentRenderer that has been configured to render the specified Component.

public IComponentRenderer GetRenderer(Component component)

Parameters

component Component

The Component that requires rendering.

Returns

IComponentRenderer

An instance of an IComponentRenderer that has been configured to render the component.