TeamsConnectorClient Constructors

Definition

Overloads

TeamsConnectorClient(DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(Uri, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(Uri, ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(Uri, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean)

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(Uri, ServiceClientCredentials, HttpClient, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

TeamsConnectorClient(DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

protected TeamsConnectorClient (params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Protected Sub New (ParamArray handlers As DelegatingHandler())

Parameters

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Applies to

TeamsConnectorClient(ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

public TeamsConnectorClient (Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Public Sub New (credentials As ServiceClientCredentials, ParamArray handlers As DelegatingHandler())

Parameters

credentials
Microsoft.Rest.ServiceClientCredentials

Required. Subscription credentials which uniquely identify client subscription.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null.

Applies to

TeamsConnectorClient(HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

protected TeamsConnectorClient (System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Protected Sub New (rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

Parameters

rootHandler
HttpClientHandler

Optional. The http client handler used to handle http transport.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Applies to

TeamsConnectorClient(Uri, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

protected TeamsConnectorClient (Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : Uri * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Protected Sub New (baseUri As Uri, ParamArray handlers As DelegatingHandler())

Parameters

baseUri
Uri

Optional. The base URI of the service.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null.

Applies to

TeamsConnectorClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

public TeamsConnectorClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Public Sub New (credentials As ServiceClientCredentials, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

Parameters

credentials
Microsoft.Rest.ServiceClientCredentials

Required. Subscription credentials which uniquely identify client subscription.

rootHandler
HttpClientHandler

Optional. The http client handler used to handle http transport.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null.

Applies to

TeamsConnectorClient(Uri, ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

public TeamsConnectorClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Public Sub New (baseUri As Uri, credentials As ServiceClientCredentials, ParamArray handlers As DelegatingHandler())

Parameters

baseUri
Uri

Optional. The base URI of the service.

credentials
Microsoft.Rest.ServiceClientCredentials

Required. Subscription credentials which uniquely identify client subscription.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null.

Applies to

TeamsConnectorClient(Uri, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

protected TeamsConnectorClient (Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : Uri * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Protected Sub New (baseUri As Uri, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

Parameters

baseUri
Uri

Optional. The base URI of the service.

rootHandler
HttpClientHandler

Optional. The http client handler used to handle http transport.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null.

Applies to

TeamsConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean)

Initializes a new instance of the TeamsConnectorClient class.

public TeamsConnectorClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient customHttpClient, bool disposeHttpClient);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClient * bool -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Public Sub New (baseUri As Uri, credentials As ServiceClientCredentials, customHttpClient As HttpClient, disposeHttpClient As Boolean)

Parameters

baseUri
Uri

Base URI for the Bot Connector service.

credentials
Microsoft.Rest.ServiceClientCredentials

Credentials for the Bot Connector service.

customHttpClient
HttpClient

The HTTP client to use for this connector client.

disposeHttpClient
Boolean

Whether to dispose the HttpClient.

Remarks

Constructor specifically designed to be the one that allows control of the disposing of the custom HttpClient. Microsoft.Rest.ServiceClient`1 only has one constructor that accepts control of the disposing of the HttpClient, so we call that overload here. All other overloads of ConnectorClient will not control this parameter and it will default to true, resulting on disposal of the provided HttpClient when the ConnectorClient is disposed. When reusing HttpClient instances across connectors, pass 'false' for disposeHttpClient to avoid ObjectDisposedException.

Applies to

TeamsConnectorClient(Uri, ServiceClientCredentials, HttpClient, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

public TeamsConnectorClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient customHttpClient, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClient * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Public Sub New (baseUri As Uri, credentials As ServiceClientCredentials, customHttpClient As HttpClient, ParamArray handlers As DelegatingHandler())

Parameters

baseUri
Uri

Base URI for the Bot Connector service.

credentials
Microsoft.Rest.ServiceClientCredentials

Credentials for the Bot Connector service.

customHttpClient
HttpClient

The HTTP client to use for this connector client.

handlers
DelegatingHandler[]

Optional, an array of DelegatingHandler objects to add to the HTTP client pipeline.

Applies to

TeamsConnectorClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the TeamsConnectorClient class.

public TeamsConnectorClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.Teams.TeamsConnectorClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.Teams.TeamsConnectorClient
Public Sub New (baseUri As Uri, credentials As ServiceClientCredentials, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

Parameters

baseUri
Uri

Optional. The base URI of the service.

credentials
Microsoft.Rest.ServiceClientCredentials

Required. Subscription credentials which uniquely identify client subscription.

rootHandler
HttpClientHandler

Optional. The http client handler used to handle http transport.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null.

Applies to