Class SitecoreLayoutRequestMapper

Version: 21.x

Maps a Microsoft.AspNetCore.Http.HttpRequest to a SitecoreLayoutRequest.

Inheritance
System.Object
SitecoreLayoutRequestMapper
Namespace: Sitecore.AspNet.RenderingEngine
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
RequestResponse
public class SitecoreLayoutRequestMapper : Object, ISitecoreLayoutRequestMapper

Constructors

SitecoreLayoutRequestMapper(IOptions<RenderingEngineOptions>)

Initializes a new instance of the SitecoreLayoutRequestMapper class.

Declaration
RequestResponse
public SitecoreLayoutRequestMapper(IOptions<RenderingEngineOptions> options)
Parameters
TypeNameDescription
Microsoft.Extensions.Options.IOptions<RenderingEngineOptions>options

The RenderingEngineOptions instance.

Methods

Map(HttpRequest)

Maps a Microsoft.AspNetCore.Http.HttpRequest to a SitecoreLayoutRequest.

Declaration
RequestResponse
public SitecoreLayoutRequest Map(HttpRequest request)
Parameters
TypeNameDescription
Microsoft.AspNetCore.Http.HttpRequestrequest

The Microsoft.AspNetCore.Http.HttpRequest to map.

Returns
TypeDescription
SitecoreLayoutRequest

A mapped SitecoreLayoutRequest.

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,