Share via


SkillConversationIdFactoryBase.CreateSkillConversationIdAsync Method

Definition

Overloads

CreateSkillConversationIdAsync(SkillConversationIdFactoryOptions, CancellationToken)

Creates a conversation id for a skill conversation.

CreateSkillConversationIdAsync(ConversationReference, CancellationToken)
Obsolete.

Creates a conversation ID for a skill conversation based on the caller's ConversationReference.

CreateSkillConversationIdAsync(SkillConversationIdFactoryOptions, CancellationToken)

Creates a conversation id for a skill conversation.

public virtual System.Threading.Tasks.Task<string> CreateSkillConversationIdAsync (Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryOptions options, System.Threading.CancellationToken cancellationToken);
abstract member CreateSkillConversationIdAsync : Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.CreateSkillConversationIdAsync : Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function CreateSkillConversationIdAsync (options As SkillConversationIdFactoryOptions, cancellationToken As CancellationToken) As Task(Of String)

Parameters

options
SkillConversationIdFactoryOptions

A SkillConversationIdFactoryOptions instance containing parameters for creating the conversation ID.

cancellationToken
CancellationToken

A cancellation token.

Returns

A unique conversation ID used to communicate with the skill.

Remarks

It should be possible to use the returned string on a request URL and it should not contain special characters.

Applies to

CreateSkillConversationIdAsync(ConversationReference, CancellationToken)

Caution

Method is deprecated, please use CreateSkillConversationIdAsync() with SkillConversationIdFactoryOptions instead.

Creates a conversation ID for a skill conversation based on the caller's ConversationReference.

[System.Obsolete("Method is deprecated, please use CreateSkillConversationIdAsync() with SkillConversationIdFactoryOptions instead.", false)]
public virtual System.Threading.Tasks.Task<string> CreateSkillConversationIdAsync (Microsoft.Bot.Schema.ConversationReference conversationReference, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Method is deprecated, please use CreateSkillConversationIdAsync() with SkillConversationIdFactoryOptions instead.", false)>]
abstract member CreateSkillConversationIdAsync : Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.CreateSkillConversationIdAsync : Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function CreateSkillConversationIdAsync (conversationReference As ConversationReference, cancellationToken As CancellationToken) As Task(Of String)

Parameters

conversationReference
ConversationReference

The skill's caller ConversationReference.

cancellationToken
CancellationToken

A cancellation token.

Returns

A unique conversation ID used to communicate with the skill.

Attributes

Remarks

It should be possible to use the returned string on a request URL and it should not contain special characters.

Applies to