Class SitecoreLayoutRequestHandlerBuilderExtensions
Version: 21.x
Extension methods to support configuration of Sitecore layout request handler services.
Inheritance
System.Object
SitecoreLayoutRequestHandlerBuilderExtensions
Namespace: Sitecore.LayoutService.Client.Extensions
Assembly: Sitecore.LayoutService.Client.dll
Syntax
Methods
AsDefaultHandler(ILayoutRequestHandlerBuilder)
Sets the current handler being built as the default handler for Sitecore layout service client requests.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| ILayoutRequestHandlerBuilder | builder | The builder being configured. |
Returns
| Type | Description |
|---|---|
| ILayoutRequestHandlerBuilder | The configured ILayoutRequestHandlerBuilder |
Type Parameters
| Name | Description |
|---|---|
| THandler | The type of handler being configured. |
WithRequestOptions(ILayoutRequestHandlerBuilder, Action)
Registers the default Sitecore layout service request options for the given handler.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| ILayoutRequestHandlerBuilder | builder | The ILayoutRequestHandlerBuilder |
| System.Action < SitecoreLayoutRequest > | configureRequest | The SitecoreLayoutRequest request options configuration. |
Returns
| Type | Description |
|---|---|
| ILayoutRequestHandlerBuilder | The configured ILayoutRequestHandlerBuilder |
Type Parameters
| Name | Description |
|---|---|
| THandler | The type of handler being configured. |
If you have suggestions for improving this article, let us know!