Class SitecoreLayoutRequestMapper

Version: 21.x

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

Inheritance

System.Object

SitecoreLayoutRequestMapper

Implements

ISitecoreLayoutRequestMapper

Namespace: Sitecore.AspNet.RenderingEngine

Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
public class SitecoreLayoutRequestMapper : Object, ISitecoreLayoutRequestMapper

Constructors

SitecoreLayoutRequestMapper(IOptions)

Initializes a new instance of the SitecoreLayoutRequestMapper class.

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

<

RenderingEngineOptions

>
optionsThe RenderingEngineOptions instance.

Methods

Map(HttpRequest)

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

Declaration
public SitecoreLayoutRequest Map(HttpRequest request)
Parameters
TypeNameDescription
Microsoft.AspNetCore.Http.HttpRequestrequestThe Microsoft.AspNetCore.Http.HttpRequest to map.
Returns
TypeDescription
SitecoreLayoutRequestA mapped SitecoreLayoutRequest.

Implements

ISitecoreLayoutRequestMapper

If you have suggestions for improving this article, let us know!