ChannelServiceHandlerBase.OnGetConversationMemberAsync メソッド

定義

GetConversationMember() API for 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)

パラメーター

claimsIdentity
ClaimsIdentity

ボットの claimsIdentity には、AudienceClaim、AppIdClaim、ServiceUrlClaim が必要です。

userId
String

ユーザー ID。

conversationId
String

会話 ID。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

応答のタスク。

注釈

1 つの会話メンバーのアカウントを取得するには、このメソッドをオーバーライドします。

この REST API は ConversationId と UserId を受け取り、会話のメンバーを表す ChannelAccount オブジェクトを返します。

適用対象