Class SitecoreLayoutRequestMapper
Version: 21.x
Maps a Microsoft.AspNetCore.Http.HttpRequest to a SitecoreLayoutRequest.
Inheritance
System.Object
SitecoreLayoutRequestMapper
Implements
Namespace: Sitecore.AspNet.RenderingEngine
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
Constructors
SitecoreLayoutRequestMapper(IOptions<RenderingEngineOptions>)
Initializes a new instance of the SitecoreLayoutRequestMapper class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<RenderingEngineOptions> | options |
The RenderingEngineOptions instance. |
Methods
Map(HttpRequest)
Maps a Microsoft.AspNetCore.Http.HttpRequest to a SitecoreLayoutRequest.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Http.HttpRequest | request |
The Microsoft.AspNetCore.Http.HttpRequest to map. |
Returns
| Type | Description |
|---|---|
| SitecoreLayoutRequest |
A mapped SitecoreLayoutRequest. |