Interface ILayoutRequestHandlerBuilder

Version: 21.x

Contract for configuring named Sitecore layout service request handlers.

Namespace: Sitecore.LayoutService.Client

Assembly: Sitecore.LayoutService.Client.Abstractions.dll

Syntax

public interface ILayoutRequestHandlerBuilder<THandler>
    where THandler : ILayoutRequestHandler
Type Parameters
NameDescription
THandlerThe type of handler being configured.

Properties

HandlerName

Gets the name of the handler being configured.

Declaration
string HandlerName { get; }
Property Value
TypeDescription
System.String

Services

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

Declaration
IServiceCollection Services { get; }
Property Value
TypeDescription
Microsoft.Extensions.DependencyInjection.IServiceCollection

Extension Methods

SitecoreLayoutRequestHandlerBuilderExtensions.AsDefaultHandler(ILayoutRequestHandlerBuilder)

SitecoreLayoutRequestHandlerBuilderExtensions.WithRequestOptions(ILayoutRequestHandlerBuilder, Action)

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