---
title: "Interface ILayoutRequestHandlerBuilder<THandler>"
slug: "sitecore.layoutservice.client.ilayoutrequesthandlerbuilder-1"
abstract: ""
---
# Interface ILayoutRequestHandlerBuilder<THandler>

Contract for configuring named Sitecore layout service request handlers.

## **Namespace**: Sitecore.LayoutService.Client

### **Assembly**: Sitecore.LayoutService.Client.Abstractions.dll

#### Syntax

```csharp
public interface ILayoutRequestHandlerBuilder<THandler>
    where THandler : ILayoutRequestHandler

```

##### Type Parameters

| Name | Description |
| --- | --- |
| THandler | The type of handler being configured. |

### Properties

#### HandlerName

Gets the name of the handler being configured.

##### Declaration

```csharp
string HandlerName { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.String |  |

#### Services

Gets the Microsoft.Extensions.DependencyInjection.IServiceCollection where Sitecore layout services are configured.

##### Declaration

```csharp
IServiceCollection Services { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| Microsoft.Extensions.DependencyInjection.IServiceCollection |  |

### Extension Methods

[SitecoreLayoutRequestHandlerBuilderExtensions.AsDefaultHandler<THandler>(ILayoutRequestHandlerBuilder<THandler>)](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.extensions.sitecorelayoutrequesthandlerbuilderextensions.html)

[SitecoreLayoutRequestHandlerBuilderExtensions.WithRequestOptions<THandler>(ILayoutRequestHandlerBuilder<THandler>, Action<SitecoreLayoutRequest>)](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.extensions.sitecorelayoutrequesthandlerbuilderextensions.html)
