ConnectorFactory.CreateAsync(String, String, CancellationToken) Metodo

Definizione

Metodo factory usato per creare IConnectorClient istanze.

public abstract System.Threading.Tasks.Task<Microsoft.Bot.Connector.IConnectorClient> CreateAsync (string serviceUrl, string audience, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.IConnectorClient>
Public MustOverride Function CreateAsync (serviceUrl As String, audience As String, cancellationToken As CancellationToken) As Task(Of IConnectorClient)

Parametri

serviceUrl
String

URL per il client.

audience
String

Il gruppo di destinatari per le credenziali che verrà usato dal client.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Attività di IConnectorClient.

Si applica a