Partager via


IConnectorClientBuilder.CreateConnectorClientAsync Méthode

Définition

Crée le client de connecteur asynchrone.

public System.Threading.Tasks.Task<Microsoft.Bot.Connector.IConnectorClient> CreateConnectorClientAsync (string serviceUrl, System.Security.Claims.ClaimsIdentity claimsIdentity, string audience, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateConnectorClientAsync : string * System.Security.Claims.ClaimsIdentity * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.IConnectorClient>
Public Function CreateConnectorClientAsync (serviceUrl As String, claimsIdentity As ClaimsIdentity, audience As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IConnectorClient)

Paramètres

serviceUrl
String

URL du service.

claimsIdentity
ClaimsIdentity

Revendications ClaimsIdentity.

audience
String

Audience cible du connecteur.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Instance connectorClient.

Exceptions

ClaimsIdentity ne peut pas être null. Transmettez les revendications anonymesIdentity si l’authentification est désactivée.

S’applique à