Lenguaje

ChannelServiceHandlerBase.OnGetConversationMemberAsync Método

Definición

API GetConversationMember() para Skill.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.ChannelAccount> OnGetConversationMemberAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, string userId, string conversationId, System.Threading.CancellationToken cancellationToken = default);
abstract member OnGetConversationMemberAsync : System.Security.Claims.ClaimsIdentity * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ChannelAccount>
override this.OnGetConversationMemberAsync : System.Security.Claims.ClaimsIdentity * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ChannelAccount>
Protected Overridable Function OnGetConversationMemberAsync (claimsIdentity As ClaimsIdentity, userId As String, conversationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelAccount)

Parámetros

claimsIdentity
ClaimsIdentity

claimsIdentity para el bot, debe tener AudienceClaim, AppIdClaim y ServiceUrlClaim.

userId
String

Id. de usuario

conversationId
String

ID de la conversación.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

tarea para una respuesta.

Comentarios

Anula este método para obtener la cuenta de un solo miembro de la conversación.

Esta API REST toma un ConversationId y un UserId y devuelve los objetos ChannelAccount que representan al miembro de la conversación.

Se aplica a