ChannelServiceHandlerBase.OnGetConversationMembersAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
API GetConversationMembers() per competenza.
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))
Parametri
- claimsIdentity
- ClaimsIdentity
claimsIdentity per il bot, deve avere AudienceClaim, AppIdClaim e ServiceUrlClaim.
- conversationId
- String
ID conversazione.
- cancellationToken
- CancellationToken
Token di annullamento.
Restituisce
attività per una risposta.
Commenti
Eseguire l'override di questo metodo per enumerare i membri di una conversazione.
Questa API REST accetta conversationId e restituisce una matrice di oggetti ChannelAccount che rappresentano i membri della conversazione.