Compartilhar via


IConnectorClientBuilder.CreateConnectorClientAsync Método

Definição

Cria o cliente do conector assíncrono.

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)

Parâmetros

serviceUrl
String

A URL do serviço.

claimsIdentity
ClaimsIdentity

As declarações claimsIdentity.

audience
String

O público-alvo do conector.

cancellationToken
CancellationToken

Token de cancelamento.

Retornos

Instância connectorClient.

Exceções

ClaimsIdentity não pode ser nulo. Passe ClaimsIdentity anônimo se a autenticação estiver desativada.

Aplica-se a