セッション構成パラメータ

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

セッションオブジェクトは以下のセッション設定パラメータを保存します:

パラメータは任意の順序で渡すことができます。例えば:

var defaultInteraction = UTEntitiesBuilder.Interaction() .ChannelId("27b4e611-a73d-4a95-b20a-811d295bdf65") .Initiator(InteractionInitiator.Contact) .Contact("jsdemo", "demo") .Build();

var session = SitecoreUTSessionBuilder.SessionWithHost("https://mysite.com") .DefaultInteraction(defaultInteraction) .DeviceIdentifier(UIDevice.CurrentDevice.IdentifierForVendor.ToString()) .BuildSession();

パラメータを一つずつ渡すことも可能です。例えば:

var defaultInteractionBuilder = UTEntitiesBuilder.Interaction();

// ... other code... defaultInteractionBuilder.ChannelId("27b4e611-a73d-4a95-b20a-811d295bdf65");

// ... other code... defaultInteractionBuilder.Initiator(InteractionInitiator.Contact);

// ... other code... defaultInteractionBuilder.Contact("jsdemo", "demo");

// ... other code... var defaultInteraction = defaultInteractionBuilder.Build();

var session = SitecoreUTSessionBuilder.SessionWithHost("https://mysite.com") .DefaultInteraction(defaultInteraction) .DeviceIdentifier(UIDevice.CurrentDevice.IdentifierForVendor.ToString()) .BuildSession();

この記事を改善するための提案がある場合は、 お知らせください!