ConnectorFactoryImpl class

Extends

Constructors

ConnectorFactoryImpl(string, string, string, boolean, ServiceClientCredentialsFactory, ConnectorClientOptions)

Methods

create(string, string)

Constructor Details

ConnectorFactoryImpl(string, string, string, boolean, ServiceClientCredentialsFactory, ConnectorClientOptions)

new ConnectorFactoryImpl(appId: string, toChannelFromBotOAuthScope: string, loginEndpoint: string, validateAuthority: boolean, credentialFactory: ServiceClientCredentialsFactory, connectorClientOptions?: ConnectorClientOptions)

Parameters

appId

string

The AppID.

toChannelFromBotOAuthScope

string

The to Channel from bot oauth scope.

loginEndpoint

string

The login url.

validateAuthority

boolean

The validate authority value to use.

credentialFactory
ServiceClientCredentialsFactory

A ServiceClientCredentialsFactory to use.

connectorClientOptions
ConnectorClientOptions

The ConnectorClientOptions to use when creating ConnectorClients.

Method Details

create(string, string)

function create(serviceUrl: string, audience?: string): Promise<ConnectorClient>

Parameters

serviceUrl

string

The client's service URL.

audience

string

The audience to use for outbound communication. It will vary by cloud environment.

Returns

Promise<ConnectorClient>

The new instance of the ConnectorClient class.