ConnectorFactory.CreateAsync(String, String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.