Jaa


OAuthClient Constructors

Definition

Overloads

OAuthClient(DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(Uri, String, String, DelegatingHandler[])
OAuthClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])
OAuthClient(Uri, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(Uri, ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

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

Initializes a new instance of the OAuthClient class.

OAuthClient(MicrosoftAppCredentials, Boolean, DelegatingHandler[])
OAuthClient(Uri, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(HttpClient, Boolean)

Initializes a new instance of the OAuthClient class.

OAuthClient(ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(ServiceClientCredentials, HttpClient, Boolean)

Initializes a new instance of the OAuthClient class.

OAuthClient(DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

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

Parameters

handlers
DelegatingHandler[]

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

Applies to

OAuthClient(Uri, String, String, DelegatingHandler[])

public OAuthClient (Uri baseUri, string microsoftAppId = default, string microsoftAppPassword = default, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : Uri * string * string * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
Public Sub New (baseUri As Uri, Optional microsoftAppId As String = Nothing, Optional microsoftAppPassword As String = Nothing, ParamArray handlers As DelegatingHandler())

Parameters

baseUri
Uri
microsoftAppId
String
microsoftAppPassword
String
handlers
DelegatingHandler[]

Applies to

OAuthClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])

public OAuthClient (Uri baseUri, Microsoft.Bot.Connector.MicrosoftAppCredentials credentials, bool addJwtTokenRefresher = true, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : Uri * Microsoft.Bot.Connector.MicrosoftAppCredentials * bool * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
Public Sub New (baseUri As Uri, credentials As MicrosoftAppCredentials, Optional addJwtTokenRefresher As Boolean = true, ParamArray handlers As DelegatingHandler())

Parameters

baseUri
Uri
addJwtTokenRefresher
Boolean
handlers
DelegatingHandler[]

Applies to

OAuthClient(Uri, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

protected OAuthClient (Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : Uri * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
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

OAuthClient(Uri, ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

public OAuthClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
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

OAuthClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

public OAuthClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
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

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

Initializes a new instance of the OAuthClient class.

public OAuthClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
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

OAuthClient(MicrosoftAppCredentials, Boolean, DelegatingHandler[])

public OAuthClient (Microsoft.Bot.Connector.MicrosoftAppCredentials credentials, bool addJwtTokenRefresher = true, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : Microsoft.Bot.Connector.MicrosoftAppCredentials * bool * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
Public Sub New (credentials As MicrosoftAppCredentials, Optional addJwtTokenRefresher As Boolean = true, ParamArray handlers As DelegatingHandler())

Parameters

addJwtTokenRefresher
Boolean
handlers
DelegatingHandler[]

Applies to

OAuthClient(Uri, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

protected OAuthClient (Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : Uri * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
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

OAuthClient(HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

protected OAuthClient (System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
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

OAuthClient(HttpClient, Boolean)

Initializes a new instance of the OAuthClient class.

protected OAuthClient (System.Net.Http.HttpClient httpClient, bool disposeHttpClient);
new Microsoft.Bot.Connector.OAuthClient : System.Net.Http.HttpClient * bool -> Microsoft.Bot.Connector.OAuthClient
Protected Sub New (httpClient As HttpClient, disposeHttpClient As Boolean)

Parameters

httpClient
HttpClient

HttpClient to be used.

disposeHttpClient
Boolean

True: will dispose the provided httpClient on calling OAuthClient.Dispose(). False: will not dispose provided httpClient.

Applies to

OAuthClient(ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

public OAuthClient (Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.OAuthClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.OAuthClient
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

OAuthClient(ServiceClientCredentials, HttpClient, Boolean)

Initializes a new instance of the OAuthClient class.

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

Parameters

credentials
Microsoft.Rest.ServiceClientCredentials

Required. Subscription credentials which uniquely identify client subscription.

httpClient
HttpClient

HttpClient to be used.

disposeHttpClient
Boolean

True: will dispose the provided httpClient on calling OAuthClient.Dispose(). False: will not dispose provided httpClient.

Exceptions

Thrown when a required parameter is null.

Applies to