ConversationBuilder.Create Method

Definition

Overloads

Name Description
Create(ClaimsIdentity, String, String)

Creates a new instance of the ConversationBuilder class initialized with the specified identity, channel ID, and optional service URL.

Create(String, String, String, String)

Creates a new instance of the ConversationBuilder class with the specified agent client ID, channel ID, and optional service URL.

Create(ClaimsIdentity, String, String)

Creates a new instance of the ConversationBuilder class initialized with the specified identity, channel ID, and optional service URL.

public static Microsoft.Agents.Builder.App.Proactive.ConversationBuilder Create(System.Security.Claims.ClaimsIdentity identity, string channelId, string serviceUrl = default);
static member Create : System.Security.Claims.ClaimsIdentity * string * string -> Microsoft.Agents.Builder.App.Proactive.ConversationBuilder
Public Shared Function Create (identity As ClaimsIdentity, channelId As String, Optional serviceUrl As String = Nothing) As ConversationBuilder

Parameters

identity
ClaimsIdentity

The ClaimsIdentity representing the user or bot for whom the conversation is being created. Cannot be null.

channelId
String

The identifier of the channel where the conversation will take place. Cannot be null or empty.

serviceUrl
String

The service URL to use for the conversation. If null, a default service URL may be used.

Returns

A ConversationBuilder instance configured with the provided identity, channel ID, and service URL.

Applies to

Create(String, String, String, String)

Creates a new instance of the ConversationBuilder class with the specified agent client ID, channel ID, and optional service URL.

public static Microsoft.Agents.Builder.App.Proactive.ConversationBuilder Create(string agentClientId, string channelId, string serviceUrl = default, string requestorId = default);
static member Create : string * string * string * string -> Microsoft.Agents.Builder.App.Proactive.ConversationBuilder
Public Shared Function Create (agentClientId As String, channelId As String, Optional serviceUrl As String = Nothing, Optional requestorId As String = Nothing) As ConversationBuilder

Parameters

agentClientId
String

The unique identifier for the agent client. Cannot be null or empty.

channelId
String

The identifier for the communication channel. Cannot be null or empty.

serviceUrl
String

The service URL to associate with the conversation. If null, the default ServiceUrl for the channel will be used.

requestorId
String

The clientId of the app making the request. Null for Azure Bot Service.

Returns

A ConversationBuilder instance initialized with the specified agent client ID, channel ID, and service URL.

Applies to