Język

ConnectorClient Konstruktory

Definicja

Przeciążenia

Nazwa Opis
ConnectorClient(DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(Uri, MicrosoftAppCredentials, HttpClientHandler, Boolean, HttpClient, DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean, DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

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

Inicjuje nowe wystąpienie klasy ConnectorClient.

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

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean)

Inicjuje nowe wystąpienie klasy ConnectorClient.

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

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(Uri, MicrosoftAppCredentials, HttpClient, Boolean, DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(Uri, ServiceClientCredentials, DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(ServiceClientCredentials, HttpClient, Boolean)

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(Uri, DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(Uri, HttpClientHandler, DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(HttpClientHandler, DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(HttpClient, Boolean)

Inicjuje nowe wystąpienie klasy ConnectorClient.

ConnectorClient(ServiceClientCredentials, DelegatingHandler[])

Inicjuje nowe wystąpienie klasy ConnectorClient.

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[]

Optional. Delegują obsługiwacze do dodawania do pipeline'u 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

Bazowy URI dla usługi Bot Connector.

credentials
MicrosoftAppCredentials

Dane uwierzytelniające do usługi Bot Connector.

httpClientHandler
HttpClientHandler

Obsługa wiadomości klienta HTTP do użycia dla tego klienta łączącego.

addJwtTokenRefresher
Boolean

Wycofane, nie używaj.

customHttpClient
HttpClient

Klient HTTP do wykorzystania dla tego klienta łączącego.

handlers
DelegatingHandler[]

Opcjonalnie tablica obiektów DelegatingHandler 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

Bazowy URI dla usługi Bot Connector.

credentials
Microsoft.Rest.ServiceClientCredentials

Dane uwierzytelniające do usługi Bot Connector.

customHttpClient
HttpClient

Klient HTTP do wykorzystania dla tego klienta łączącego.

addJwtTokenRefresher
Boolean

Wycofane, nie używaj.

handlers
DelegatingHandler[]

Opcjonalnie tablica obiektów DelegatingHandler 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
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

Bazowy URI dla usługi Bot Connector.

microsoftAppId
String

Opcjonalnie, identyfikator aplikacji Microsoft dla zasobu bota. Jeśli null, to ustawienie jest odczytywane z MicrosoftAppId ustawienia zasobu aplikacyjnego bota.

microsoftAppPassword
String

Opcjonalnie, hasło do aplikacji Microsoft do bota. Jeśli null, to ustawienie jest odczytywane z MicrosoftAppPassword ustawienia zasobu aplikacyjnego bota.

handlers
DelegatingHandler[]

Opcjonalnie tablica obiektów DelegatingHandler 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

Optional. Bazowy URI tej usługi.

credentials
Microsoft.Rest.ServiceClientCredentials

Required. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.

rootHandler
HttpClientHandler

Optional. Obsługa klienta http była używana do obsługi transportu http.

handlers
DelegatingHandler[]

Optional. Delegują obsługiwacze do dodawania do pipeline'u klienta http.

Wyjątki

Rzucane, gdy wymagany parametr jest 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

Bazowy URI dla usługi Bot Connector.

credentials
Microsoft.Rest.ServiceClientCredentials

Dane uwierzytelniające do usługi Bot Connector.

customHttpClient
HttpClient

Klient HTTP do wykorzystania dla tego klienta łączącego.

disposeHttpClient
Boolean

Czy pozbyć się .HttpClient

Uwagi

Konstruktor specjalnie zaprojektowany, aby umożliwiał kontrolę nad pozbyciem się niestandardowych HttpClient. Microsoft.Rest.ServiceClient`1 Ma tylko jeden konstruktor, który akceptuje kontrolę nad pozbyciem , HttpClientwięc nazywamy to tutaj przeciążeniem. Wszystkie inne przeciążenia nie ConnectorClient kontrolują tego parametru i domyślnie będzie on ustawiony na prawdę, co skutkuje pozbyciem się dostarczonego HttpClient parametru podczas ConnectorClient likwidacji. Podczas ponownego używania HttpClient instancji między złączami, przekażmy 'false' for 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
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

Bazowy URI dla usługi Bot Connector.

credentials
MicrosoftAppCredentials

Dane uwierzytelniające do usługi Bot Connector.

addJwtTokenRefresher
Boolean

Wycofane, nie używaj.

handlers
DelegatingHandler[]

Opcjonalnie tablica obiektów DelegatingHandler 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

Bazowy URI dla usługi Bot Connector.

credentials
MicrosoftAppCredentials

Dane uwierzytelniające do usługi Bot Connector.

customHttpClient
HttpClient

Klient HTTP do wykorzystania dla tego klienta łączącego.

addJwtTokenRefresher
Boolean

Wycofane, nie używaj.

handlers
DelegatingHandler[]

Opcjonalnie tablica obiektów DelegatingHandler 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

Optional. Bazowy URI tej usługi.

credentials
Microsoft.Rest.ServiceClientCredentials

Required. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.

handlers
DelegatingHandler[]

Optional. Delegują obsługiwacze do dodawania do pipeline'u klienta http.

Wyjątki

Rzucane, gdy wymagany parametr jest 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

Required. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.

rootHandler
HttpClientHandler

Optional. Obsługa klienta http była używana do obsługi transportu http.

handlers
DelegatingHandler[]

Optional. Delegują obsługiwacze do dodawania do pipeline'u klienta http.

Wyjątki

Rzucane, gdy wymagany parametr jest 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

Required. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.

httpClient
HttpClient

HttpClient do użycia.

disposeHttpClient
Boolean

True: pozbywa się dostarczonego httpClient po wywołaniu ConnectorClient.Dispose(). Fałsz: nie pozbędzie się dostarczonego httpClient.

Wyjątki

Rzucane, gdy wymagany parametr jest 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

Optional. Bazowy URI tej usługi.

handlers
DelegatingHandler[]

Optional. Delegują obsługiwacze do dodawania do pipeline'u klienta http.

Wyjątki

Rzucane, gdy wymagany parametr jest 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

Optional. Bazowy URI tej usługi.

rootHandler
HttpClientHandler

Optional. Obsługa klienta http była używana do obsługi transportu http.

handlers
DelegatingHandler[]

Optional. Delegują obsługiwacze do dodawania do pipeline'u klienta http.

Wyjątki

Rzucane, gdy wymagany parametr jest 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

Optional. Obsługa klienta http była używana do obsługi transportu http.

handlers
DelegatingHandler[]

Optional. Delegują obsługiwacze do dodawania do pipeline'u 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

HttpClient do użycia.

disposeHttpClient
Boolean

True: pozbywa się dostarczonego httpClient po wywołaniu ConnectorClient.Dispose(). Fałsz: nie pozbędzie się dostarczonego 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

Required. Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.

handlers
DelegatingHandler[]

Optional. Delegują obsługiwacze do dodawania do pipeline'u klienta http.

Wyjątki

Rzucane, gdy wymagany parametr jest null.

Dotyczy