UNPKG

botframework-connector

Version:

Bot Connector is autorest generated connector client.

25 lines (22 loc) 955 B
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ServiceClientContext, ServiceClientCredentials } from "botbuilder-stdlib/lib/azureCoreHttpCompat"; import * as Models from "./models"; const packageName = 'botframework-connector'; const packageVersion = '4.0.0'; export class ConnectorClientContext extends ServiceClientContext { /** * Initializes a new instance of the ConnectorClientContext class. * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ constructor(credentials: ServiceClientCredentials, options?: Models.ConnectorClientOptions) { super(credentials, { ...options, baseUri: options?.baseUri || 'https://api.botframework.com', userAgent: `${packageName}/${packageVersion} ${options?.userAgent || ''}`, }); } }