OAuthClient Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
OAuthClient(DelegatingHandler[])
Inicjuje nowe wystąpienie klasy OAuthClient.
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())
Parametry
- handlers
- DelegatingHandler[]
Opcjonalny. Delegowanie procedur obsługi w celu dodania do potoku klienta http.
Dotyczy
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())
Parametry
- baseUri
- Uri
- microsoftAppId
- String
- microsoftAppPassword
- String
- handlers
- DelegatingHandler[]
Dotyczy
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())
Parametry
- baseUri
- Uri
- credentials
- MicrosoftAppCredentials
- addJwtTokenRefresher
- Boolean
- handlers
- DelegatingHandler[]
Dotyczy
OAuthClient(Uri, HttpClientHandler, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy OAuthClient.
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())
Parametry
- baseUri
- Uri
Opcjonalny. Podstawowy identyfikator URI usługi.
- rootHandler
- HttpClientHandler
Opcjonalny. Procedura obsługi klienta http używana do obsługi transportu http.
- handlers
- DelegatingHandler[]
Opcjonalny. Delegowanie procedur obsługi w celu dodania do potoku klienta http.
Wyjątki
Zgłaszany, gdy wymagany parametr ma wartość null.
Dotyczy
OAuthClient(Uri, ServiceClientCredentials, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy OAuthClient.
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())
Parametry
- baseUri
- Uri
Opcjonalny. Podstawowy identyfikator URI usługi.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Wymagane. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.
- handlers
- DelegatingHandler[]
Opcjonalny. Delegowanie procedur obsługi w celu dodania do potoku klienta http.
Wyjątki
Zgłaszany, gdy wymagany parametr ma wartość null.
Dotyczy
OAuthClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy OAuthClient.
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())
Parametry
- credentials
- Microsoft.Rest.ServiceClientCredentials
Wymagane. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.
- rootHandler
- HttpClientHandler
Opcjonalny. Procedura obsługi klienta http używana do obsługi transportu http.
- handlers
- DelegatingHandler[]
Opcjonalny. Delegowanie procedur obsługi w celu dodania do potoku klienta http.
Wyjątki
Zgłaszany, gdy wymagany parametr ma wartość null.
Dotyczy
OAuthClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy OAuthClient.
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())
Parametry
- baseUri
- Uri
Opcjonalny. Podstawowy identyfikator URI usługi.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Wymagane. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.
- rootHandler
- HttpClientHandler
Opcjonalny. Procedura obsługi klienta http używana do obsługi transportu http.
- handlers
- DelegatingHandler[]
Opcjonalny. Delegowanie procedur obsługi w celu dodania do potoku klienta http.
Wyjątki
Zgłaszany, gdy wymagany parametr ma wartość null.
Dotyczy
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())
Parametry
- credentials
- MicrosoftAppCredentials
- addJwtTokenRefresher
- Boolean
- handlers
- DelegatingHandler[]
Dotyczy
OAuthClient(Uri, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy OAuthClient.
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())
Parametry
- baseUri
- Uri
Opcjonalny. Podstawowy identyfikator URI usługi.
- handlers
- DelegatingHandler[]
Opcjonalny. Delegowanie procedur obsługi w celu dodania do potoku klienta http.
Wyjątki
Zgłaszany, gdy wymagany parametr ma wartość null.
Dotyczy
OAuthClient(HttpClientHandler, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy OAuthClient.
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())
Parametry
- rootHandler
- HttpClientHandler
Opcjonalny. Procedura obsługi klienta http używana do obsługi transportu http.
- handlers
- DelegatingHandler[]
Opcjonalny. Delegowanie procedur obsługi w celu dodania do potoku klienta http.
Dotyczy
OAuthClient(HttpClient, Boolean)
Inicjuje nowe wystąpienie klasy OAuthClient.
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)
Parametry
- httpClient
- HttpClient
Element HttpClient do użycia.
- disposeHttpClient
- Boolean
Prawda: usunie podany element httpClient podczas wywoływania obiektu OAuthClient.Dispose(). Fałsz: nie usunie podanego obiektu httpClient.
Dotyczy
OAuthClient(ServiceClientCredentials, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy OAuthClient.
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())
Parametry
- credentials
- Microsoft.Rest.ServiceClientCredentials
Wymagane. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.
- handlers
- DelegatingHandler[]
Opcjonalny. Delegowanie procedur obsługi w celu dodania do potoku klienta http.
Wyjątki
Zgłaszany, gdy wymagany parametr ma wartość null.
Dotyczy
OAuthClient(ServiceClientCredentials, HttpClient, Boolean)
Inicjuje nowe wystąpienie klasy OAuthClient.
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)
Parametry
- credentials
- Microsoft.Rest.ServiceClientCredentials
Wymagane. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.
- httpClient
- HttpClient
Element HttpClient do użycia.
- disposeHttpClient
- Boolean
Prawda: usunie podany element httpClient podczas wywoływania obiektu OAuthClient.Dispose(). Fałsz: nie usunie podanego obiektu httpClient.
Wyjątki
Zgłaszany, gdy wymagany parametr ma wartość null.