Język

ChannelServiceHandlerBase.OnGetConversationMembersAsync Metoda

Definicja

API GetConversationMembers() dla umiejętności.

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

Parametry

claimsIdentity
ClaimsIdentity

claimsIdentity bota powinien mieć AudienceClaim, AppIdClaim i ServiceUrlClaim.

conversationId
String

Identyfikator konwersacji.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

zadanie odpowiedzi.

Uwagi

Nadpisz tę metodę, aby wymienić członków rozmowy.

Ten interfejs API REST przyjmuje identyfikator ConversationId i zwraca tablicę obiektów ChannelAccount reprezentujących członków konwersacji.

Dotyczy