クラスSitecoreLayoutClientBuilderExtensions
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
レイアウトサービスサービスの構成をサポートする拡張手法。
相続
System.Object
SitecoreLayoutClientBuilderExtensions
名前空間。LayoutService.Client.Extensions
アセンブリ。LayoutService.Client.dll
構文論
public static class SitecoreLayoutClientBuilderExtensions : Object
方法
AddGraphQlHandler(ISitecoreLayoutClientBuilder, String, String, String, Uri)
リクエストを処理するためにgraphQlハンドラを登録します。
宣言
public static ILayoutRequestHandlerBuilder
パラメータ
種類
名称
概要
ISitecoreLayoutClientBuilder
ビルダー
ISitecoreLayoutClientBuilderを設定中です。
System.String
名称
ハンドラーを識別するために使われた名前。
System.String
サイト名
ハンドラーを識別するために使われたsiteNameが使われていました。
System.String
apiKey
GraphQlエンドポイントにアクセスするためのapiKey。
システム。ウリ
ウリ
GraphQl エンドポイント uri.
返還
種類
概要
ILayoutRequestHandlerBuilder
<
GraphQlLayoutServiceHandler
>
ILayoutRequestHandlerBuilder これにより追加の呼び出しを連鎖できます。
AddHandler(ISitecoreLayoutClientBuilder, String, Func<IServiceProvider, THandler>)
リクエストを処理するために型THandlerのハンドラを登録します。
宣言
public static ILayoutRequestHandlerBuilder
パラメータ
種類
名称
概要
ISitecoreLayoutClientBuilder
ビルダー
ISitecoreLayoutClientBuilderを設定中です。
System.String
名称
ハンドラーを識別するために使われた名前。
System.Func
<
System.IServiceProvider
、THandler>
工場
クライアントのインスタンス化を制御するためのオプションのファクトリー設定。
返還
種類
概要
ILayoutRequestHandlerBuilder
ILayoutRequestHandlerBuilder これにより追加の呼び出しを連鎖できます。
型パラメータ
名称
概要
サンドラー
このサービスに登録すべき name。
AddSystemTextJson(ISitecoreLayoutClientBuilder)
System.Text.Json固有の機能を設定し、入力・出力フォーマットなどを配置します。
宣言
public static ISitecoreLayoutClientBuilder AddSystemTextJson(this ISitecoreLayoutClientBuilder builder)
パラメータ
種類
名称
概要
ISitecoreLayoutClientBuilder
ビルダー
ISitecoreLayoutClientBuilderを設定中です。
返還
種類
概要
ISitecoreLayoutClientBuilder
ILayoutRequestHandlerBuilder これにより追加の呼び出しを連鎖できます。
WithDefaultRequestOptions(ISitecoreLayoutClientBuilder, Action)
すべてのハンドラのデフォルトレイアウトサービスリクエストオプションを登録します。
宣言
public static ISitecoreLayoutClientBuilder WithDefaultRequestOptions(this ISitecoreLayoutClientBuilder builder, Action
パラメータ
種類
名称
概要
ISitecoreLayoutClientBuilder
ビルダー
ISitecoreLayoutClientBuilderを設定中です。
システム。アクション
<
SitecoreLayoutRequest
>
configureRequest
SitecoreLayoutRequestリクエストオプションの設定。
返還
種類
概要
ISitecoreLayoutClientBuilder
設定された ISitecoreLayoutClientBuilder。