ConnectorClient 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
ConnectorClient(DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
protected ConnectorClient(params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
Protected Sub New (ParamArray handlers As DelegatingHandler())
Parametry
- handlers
- DelegatingHandler[]
Opcjonalny. Delegowanie procedur obsługi w celu dodania do potoku klienta http.
Dotyczy
ConnectorClient(Uri, MicrosoftAppCredentials, HttpClientHandler, Boolean, HttpClient, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Uri baseUri, Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials credentials, System.Net.Http.HttpClientHandler httpClientHandler, bool addJwtTokenRefresher = true, System.Net.Http.HttpClient customHttpClient = default, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials * System.Net.Http.HttpClientHandler * bool * System.Net.Http.HttpClient * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
Public Sub New (baseUri As Uri, credentials As MicrosoftAppCredentials, httpClientHandler As HttpClientHandler, Optional addJwtTokenRefresher As Boolean = true, Optional customHttpClient As HttpClient = Nothing, ParamArray handlers As DelegatingHandler())
Parametry
- baseUri
- Uri
Podstawowy identyfikator URI usługi Bot Connector.
- credentials
- MicrosoftAppCredentials
Poświadczenia usługi Bot Connector.
- httpClientHandler
- HttpClientHandler
Procedura obsługi komunikatów klienta HTTP do użycia dla tego klienta łącznika.
- addJwtTokenRefresher
- Boolean
Przestarzałe, nie używaj.
- customHttpClient
- HttpClient
Klient HTTP do użycia dla tego klienta łącznika.
- handlers
- DelegatingHandler[]
Opcjonalnie tablica DelegatingHandler obiektów do dodania do potoku klienta HTTP.
Dotyczy
ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient customHttpClient, bool addJwtTokenRefresher = true, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClient * bool * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
Public Sub New (baseUri As Uri, credentials As ServiceClientCredentials, customHttpClient As HttpClient, Optional addJwtTokenRefresher As Boolean = true, ParamArray handlers As DelegatingHandler())
Parametry
- baseUri
- Uri
Podstawowy identyfikator URI usługi Bot Connector.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Poświadczenia usługi Bot Connector.
- customHttpClient
- HttpClient
Klient HTTP do użycia dla tego klienta łącznika.
- addJwtTokenRefresher
- Boolean
Przestarzałe, nie używaj.
- handlers
- DelegatingHandler[]
Opcjonalnie tablica DelegatingHandler obiektów do dodania do potoku klienta HTTP.
Dotyczy
ConnectorClient(Uri, MicrosoftAppCredentials, HttpClientHandler, Boolean, DelegatingHandler[])
public ConnectorClient(Uri baseUri, Microsoft.Bot.Connector.MicrosoftAppCredentials credentials, System.Net.Http.HttpClientHandler httpClientHandler, bool addJwtTokenRefresher = true, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * Microsoft.Bot.Connector.MicrosoftAppCredentials * System.Net.Http.HttpClientHandler * bool * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
Public Sub New (baseUri As Uri, credentials As MicrosoftAppCredentials, httpClientHandler As HttpClientHandler, Optional addJwtTokenRefresher As Boolean = true, ParamArray handlers As DelegatingHandler())
Parametry
- baseUri
- Uri
- credentials
- MicrosoftAppCredentials
- httpClientHandler
- HttpClientHandler
- addJwtTokenRefresher
- Boolean
- handlers
- DelegatingHandler[]
Dotyczy
ConnectorClient(Uri, String, String, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Uri baseUri, string microsoftAppId = default, string microsoftAppPassword = default, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * string * string * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
Public Sub New (baseUri As Uri, Optional microsoftAppId As String = Nothing, Optional microsoftAppPassword As String = Nothing, ParamArray handlers As DelegatingHandler())
Parametry
- baseUri
- Uri
Podstawowy identyfikator URI usługi Bot Connector.
- microsoftAppId
- String
Opcjonalnie identyfikator aplikacji firmy Microsoft dla zasobu bota.
Jeśli ma wartość null, to ustawienie jest odczytywane z MicrosoftAppId ustawienia zasobu aplikacji bota.
- microsoftAppPassword
- String
Opcjonalnie hasło aplikacji firmy Microsoft dla bota.
Jeśli ma wartość null, to ustawienie jest odczytywane z MicrosoftAppPassword ustawienia zasobu aplikacji bota.
- handlers
- DelegatingHandler[]
Opcjonalnie tablica DelegatingHandler obiektów do dodania do potoku klienta HTTP.
Dotyczy
ConnectorClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
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
ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean)
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient customHttpClient, bool disposeHttpClient);
new Microsoft.Bot.Connector.ConnectorClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClient * bool -> Microsoft.Bot.Connector.ConnectorClient
Public Sub New (baseUri As Uri, credentials As ServiceClientCredentials, customHttpClient As HttpClient, disposeHttpClient As Boolean)
Parametry
- baseUri
- Uri
Podstawowy identyfikator URI usługi Bot Connector.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Poświadczenia usługi Bot Connector.
- customHttpClient
- HttpClient
Klient HTTP do użycia dla tego klienta łącznika.
- disposeHttpClient
- Boolean
Czy usunąć element HttpClient.
Uwagi
Konstruktor zaprojektowany specjalnie tak, aby był taki, który umożliwia kontrolę nad dysponowaniem niestandardowego HttpClientobiektu .
Microsoft.Rest.ServiceClient`1 Ma tylko jeden konstruktor, który akceptuje kontrolę nad dysponowaniem HttpClientobiektu , więc nazywamy to przeciążeniem tutaj. Wszystkie inne przeciążenia elementu nie będą kontrolować tego parametru ConnectorClient i domyślnie wartość true, co spowoduje usunięcie podanego HttpClient parametru po usunięciu ConnectorClient . Podczas ponownego HttpClient użytku wystąpień między łącznikami przekaż wartość "false" disposeHttpClient , aby uniknąć ObjectDisposedException.
Dotyczy
ConnectorClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])
public ConnectorClient(Uri baseUri, Microsoft.Bot.Connector.MicrosoftAppCredentials credentials, bool addJwtTokenRefresher = true, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * Microsoft.Bot.Connector.MicrosoftAppCredentials * bool * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
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
ConnectorClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Uri baseUri, Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials credentials, bool addJwtTokenRefresher = true, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials * bool * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
Public Sub New (baseUri As Uri, credentials As MicrosoftAppCredentials, Optional addJwtTokenRefresher As Boolean = true, ParamArray handlers As DelegatingHandler())
Parametry
- baseUri
- Uri
Podstawowy identyfikator URI usługi Bot Connector.
- credentials
- MicrosoftAppCredentials
Poświadczenia usługi Bot Connector.
- addJwtTokenRefresher
- Boolean
Przestarzałe, nie używaj.
- handlers
- DelegatingHandler[]
Opcjonalnie tablica DelegatingHandler obiektów do dodania do potoku klienta HTTP.
Dotyczy
ConnectorClient(Uri, MicrosoftAppCredentials, HttpClient, Boolean, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Uri baseUri, Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials credentials, System.Net.Http.HttpClient customHttpClient, bool addJwtTokenRefresher = true, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials * System.Net.Http.HttpClient * bool * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
Public Sub New (baseUri As Uri, credentials As MicrosoftAppCredentials, customHttpClient As HttpClient, Optional addJwtTokenRefresher As Boolean = true, ParamArray handlers As DelegatingHandler())
Parametry
- baseUri
- Uri
Podstawowy identyfikator URI usługi Bot Connector.
- credentials
- MicrosoftAppCredentials
Poświadczenia usługi Bot Connector.
- customHttpClient
- HttpClient
Klient HTTP do użycia dla tego klienta łącznika.
- addJwtTokenRefresher
- Boolean
Przestarzałe, nie używaj.
- handlers
- DelegatingHandler[]
Opcjonalnie tablica DelegatingHandler obiektów do dodania do potoku klienta HTTP.
Dotyczy
ConnectorClient(Uri, ServiceClientCredentials, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
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
ConnectorClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
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
ConnectorClient(ServiceClientCredentials, HttpClient, Boolean)
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disposeHttpClient);
new Microsoft.Bot.Connector.ConnectorClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClient * bool -> Microsoft.Bot.Connector.ConnectorClient
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 elementu ConnectorClient.Dispose(). Fałsz: nie usunie podanego obiektu httpClient.
Wyjątki
Zgłaszany, gdy wymagany parametr ma wartość null.
Dotyczy
ConnectorClient(Uri, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
protected ConnectorClient(Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
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
ConnectorClient(Uri, HttpClientHandler, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
protected ConnectorClient(Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Uri * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
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
ConnectorClient(HttpClientHandler, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
protected ConnectorClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
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
ConnectorClient(HttpClient, Boolean)
Inicjuje nowe wystąpienie klasy ConnectorClient.
protected ConnectorClient(System.Net.Http.HttpClient httpClient, bool disposeHttpClient);
new Microsoft.Bot.Connector.ConnectorClient : System.Net.Http.HttpClient * bool -> Microsoft.Bot.Connector.ConnectorClient
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 elementu ConnectorClient.Dispose(). Fałsz: nie usunie podanego obiektu httpClient.
Dotyczy
ConnectorClient(ServiceClientCredentials, DelegatingHandler[])
Inicjuje nowe wystąpienie klasy ConnectorClient.
public ConnectorClient(Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Bot.Connector.ConnectorClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.ConnectorClient
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.