Table of Contents

Class ServiceCollectionExtensions

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

Extension methods for setting up Sitecore Rendering Engine related services in an IServiceCollection.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddSitecoreRenderingEngine(IServiceCollection, Action<RenderingEngineOptions>?)

Adds the Sitecore Rendering Engine services to the IServiceCollection.

public static ISitecoreRenderingEngineBuilder AddSitecoreRenderingEngine(this IServiceCollection services, Action<RenderingEngineOptions>? options = null)

Parameters

services IServiceCollection

The IServiceCollection to add services to.

options Action<RenderingEngineOptions>

Configures the Rendering Engine options.

Returns

ISitecoreRenderingEngineBuilder

The IServiceCollection so that additional calls can be chained.

ForwardHeaders(ISitecoreRenderingEngineBuilder, Action<ForwardHeadersOptions>?)

Enables forwarding of headers.

public static ISitecoreRenderingEngineBuilder ForwardHeaders(this ISitecoreRenderingEngineBuilder serviceBuilder, Action<ForwardHeadersOptions>? options = null)

Parameters

serviceBuilder ISitecoreRenderingEngineBuilder

The ISitecoreRenderingEngineBuilder to add services to.

options Action<ForwardHeadersOptions>

Configures the headers forwarding options.

Returns

ISitecoreRenderingEngineBuilder

The IServiceCollection so that additional calls can be chained.