Class SitecoreLayoutRequestHandlerBuilder<THandler>

Version: 21.x

Contract for configuring named Sitecore layout service request handlers.

Inheritance
System.Object
SitecoreLayoutRequestHandlerBuilder<THandler>
Implements
Namespace: Sitecore.LayoutService.Client
Assembly: Sitecore.LayoutService.Client.dll
Syntax
RequestResponse
public class SitecoreLayoutRequestHandlerBuilder<THandler> : Object, ILayoutRequestHandlerBuilder<THandler> where THandler : ILayoutRequestHandler
Type Parameters
NameDescription
THandler

The type of handler being configured.

Constructors

SitecoreLayoutRequestHandlerBuilder(String, IServiceCollection)

Initializes a new instance of the SitecoreLayoutRequestHandlerBuilder<THandler> class.

Declaration
RequestResponse
public SitecoreLayoutRequestHandlerBuilder(string handlerName, IServiceCollection services)
Parameters
TypeNameDescription
System.StringhandlerName

The name of the handler being configured.

Microsoft.Extensions.DependencyInjection.IServiceCollectionservices

The initial Microsoft.Extensions.DependencyInjection.IServiceCollection.

Properties

HandlerName

Gets the name of the handler being configured.

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

Services

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

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

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,