Conversation Constructors

Definition

Overloads

Name Description
Conversation(ITurnContext)

Initializes a new instance of the Conversation class using the specified turn context.

Conversation(IDictionary<String,String>, ConversationReference)

Initializes a new instance of the Conversation class with the specified claims and conversation reference.

Conversation(ClaimsIdentity, ConversationReference)

Initializes a new instance of the Conversation class using the specified identity and conversation reference.

Conversation(ITurnContext)

Initializes a new instance of the Conversation class using the specified turn context.

public Conversation(Microsoft.Agents.Builder.ITurnContext context);
new Microsoft.Agents.Builder.App.Proactive.Conversation : Microsoft.Agents.Builder.ITurnContext -> Microsoft.Agents.Builder.App.Proactive.Conversation
Public Sub New (context As ITurnContext)

Parameters

context
ITurnContext

The turn context containing the identity and activity information to initialize the conversation reference. Cannot be null.

Applies to

Conversation(IDictionary<String,String>, ConversationReference)

Initializes a new instance of the Conversation class with the specified claims and conversation reference.

public Conversation(System.Collections.Generic.IDictionary<string,string> claims, Microsoft.Agents.Core.Models.ConversationReference reference);
new Microsoft.Agents.Builder.App.Proactive.Conversation : System.Collections.Generic.IDictionary<string, string> * Microsoft.Agents.Core.Models.ConversationReference -> Microsoft.Agents.Builder.App.Proactive.Conversation
Public Sub New (claims As IDictionary(Of String, String), reference As ConversationReference)

Parameters

claims
IDictionary<String,String>

A dictionary containing claim types and their corresponding values associated with the conversation. Cannot be null.

reference
ConversationReference

The reference information that uniquely identifies the conversation. Cannot be null.

Applies to

Conversation(ClaimsIdentity, ConversationReference)

Initializes a new instance of the Conversation class using the specified identity and conversation reference.

public Conversation(System.Security.Claims.ClaimsIdentity identity, Microsoft.Agents.Core.Models.ConversationReference reference);
new Microsoft.Agents.Builder.App.Proactive.Conversation : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.ConversationReference -> Microsoft.Agents.Builder.App.Proactive.Conversation
Public Sub New (identity As ClaimsIdentity, reference As ConversationReference)

Parameters

identity
ClaimsIdentity

The ClaimsIdentity containing the claims associated with the conversation. Cannot be null.

reference
ConversationReference

The ConversationReference that identifies the conversation. Cannot be null.

Applies to