Share via


ConnectorFactory.CreateAsync(String, String, CancellationToken) Method

Definition

A factory method used to create IConnectorClient instances.

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)

Parameters

serviceUrl
String

The url for the client.

audience
String

The audience for the credentials the client will use.

cancellationToken
CancellationToken

Cancellation token.

Returns

A Task of IConnectorClient.

Applies to