---
title: "クラスGraphQlLayoutServiceHandler"
slug: "sitecore.layoutservice.client.requesthandlers.graphql.graphqllayoutservicehandler"
abstract: ""
---
# クラスGraphQlLayoutServiceHandler

Sitecoreレイアウトサービスへのリクエストをサポートします。

## 相続

System.Object

GraphQlLayoutServiceHandler

### 実装

[CalloutRequestHandler](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.ilayoutrequesthandler.html)

System.IDisposable

#### **名前空間**:Sitecore。LayoutService.Client.RequestHandlers。GraphQL

##### **アセンブリ**:Sitecore。LayoutService.Client.dll

##### 構文論

public class GraphQlLayoutServiceHandler : Object, ILayoutRequestHandler

### コンストラクター

#### GraphQlLayoutServiceHandler(IGraphQLClient、ISitecoreLayoutSerializer、ILogger)

[GraphQlLayoutServiceHandler](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.requesthandlers.graphql.graphqllayoutservicehandler.html)クラスの新しいインスタンスを初期化します。

##### 宣言

public GraphQlLayoutServiceHandler(IGraphQLClient client, ISitecoreLayoutSerializer serializer, ILogger<GraphQlLayoutServiceHandler> logger)

##### パラメータ

種類

名称

概要

GraphQL。クライアント。抽象化。IGraphQLClient

クライアント

応答データを扱うためのgraphQlクライアントです。

ISitecoreLayoutSerializer

シリアライザー

シリアライザーは応答データを扱うためのものです。

Microsoft。拡張機能。ログ。ILogger  
  
<  
  
GraphQlLayoutServiceHandler  
  
\>

ロガー

Microsoft。ログ用に使う拡張機能.Logging.ILogger。

### 方法

#### 処分()

Dispose GraphQLClient。

##### 宣言

public void Dispose()

#### Request(SitecoreLayoutRequest, String)

指定されたハンドラーを使ってSitecoreレイアウトサービスへのリクエストを処理します。

##### 宣言

public Task<SitecoreLayoutResponse> Request(SitecoreLayoutRequest request, string handlerName)

##### パラメータ

種類

名称

概要

SitecoreLayoutRequest

要望

リクエストの詳細。

System.String

ハンドラーネーム

リクエストを処理するために使用するリクエストハンドラの名前。

##### 返還

種類

概要

System.Threading.Tasks.Task  
  
<  
  
SitecoreLayoutResponse(サイトコアレイアウトレスポンス)  
  
\>

その要請の返答。

### 実装

[CalloutRequestHandler](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.ilayoutrequesthandler.html)

System.IDisposable