Udostępnij za pośrednictwem


ChannelServiceHandlerBase.OnGetConversationMembersAsync Metoda

Definicja

Interfejs 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 dla bota, powinny mieć wartość AudienceClaim, AppIdClaim i ServiceUrlClaim.

conversationId
String

Identyfikator konwersacji.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

zadanie dla odpowiedzi.

Uwagi

Zastąpij tę metodę, aby wyliczyć członków konwersacji.

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

Dotyczy