ConnectorFactory class
A factory class used to create ConnectorClients with appropriate credentials for the current appId.
Methods
create(string, string) | A factory method used to create ConnectorClient instances. |
Method Details
create(string, string)
A factory method used to create ConnectorClient instances.
function create(serviceUrl: string, audience?: string): Promise<ConnectorClient>
Parameters
- serviceUrl
-
string
The url for the client.
- audience
-
string
The audience for the credentials the client will use.
Returns
Promise<ConnectorClient>
A ConnectorClient for sending activities to the audience at the serviceUrl.