ConnectorClient Constructors
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
ConnectorClient(DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- handlers
- DelegatingHandler[]
Optioneel. De delegerende handlers die moeten worden toegevoegd aan de HTTP-clientpijplijn.
Van toepassing op
ConnectorClient(Uri, MicrosoftAppCredentials, HttpClientHandler, Boolean, HttpClient, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- baseUri
- Uri
Basis-URI voor de Bot Connector-service.
- credentials
- MicrosoftAppCredentials
Referenties voor de Bot Connector-service.
- httpClientHandler
- HttpClientHandler
De HTTP-clientberichthandler die moet worden gebruikt voor deze connectorclient.
- addJwtTokenRefresher
- Boolean
Afgeschaft, niet gebruiken.
- customHttpClient
- HttpClient
De HTTP-client die moet worden gebruikt voor deze connectorclient.
- handlers
- DelegatingHandler[]
Optioneel, een matrix met DelegatingHandler objecten die moeten worden toegevoegd aan de HTTP-clientpijplijn.
Van toepassing op
ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- baseUri
- Uri
Basis-URI voor de Bot Connector-service.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Referenties voor de Bot Connector-service.
- customHttpClient
- HttpClient
De HTTP-client die moet worden gebruikt voor deze connectorclient.
- addJwtTokenRefresher
- Boolean
Afgeschaft, niet gebruiken.
- handlers
- DelegatingHandler[]
Optioneel, een matrix met DelegatingHandler objecten die moeten worden toegevoegd aan de HTTP-clientpijplijn.
Van toepassing op
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())
Parameters
- baseUri
- Uri
- credentials
- MicrosoftAppCredentials
- httpClientHandler
- HttpClientHandler
- addJwtTokenRefresher
- Boolean
- handlers
- DelegatingHandler[]
Van toepassing op
ConnectorClient(Uri, String, String, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- baseUri
- Uri
Basis-URI voor de Bot Connector-service.
- microsoftAppId
- String
Optioneel: de Microsoft-app-id voor de botresource.
Indien null, wordt deze instelling gelezen uit de MicrosoftAppId
instelling voor de toepassingsresource van de bot.
- microsoftAppPassword
- String
Optioneel: het wachtwoord van de Microsoft-app voor de bot.
Indien null, wordt deze instelling gelezen uit de MicrosoftAppPassword
instelling voor de toepassingsresource van de bot.
- handlers
- DelegatingHandler[]
Optioneel, een matrix met DelegatingHandler objecten die moeten worden toegevoegd aan de HTTP-clientpijplijn.
Van toepassing op
ConnectorClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- baseUri
- Uri
Optioneel. De basis-URI van de service.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Vereist. Abonnementsreferenties waarmee het clientabonnement uniek wordt geïdentificeerd.
- rootHandler
- HttpClientHandler
Optioneel. De http-clienthandler die wordt gebruikt voor het verwerken van http-transport.
- handlers
- DelegatingHandler[]
Optioneel. De delegerende handlers die moeten worden toegevoegd aan de HTTP-clientpijplijn.
Uitzonderingen
Gegenereerd wanneer een vereiste parameter null is.
Van toepassing op
ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean)
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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)
Parameters
- baseUri
- Uri
Basis-URI voor de Bot Connector-service.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Referenties voor de Bot Connector-service.
- customHttpClient
- HttpClient
De HTTP-client die moet worden gebruikt voor deze connectorclient.
- disposeHttpClient
- Boolean
Of u de HttpClientwilt verwijderen.
Opmerkingen
De constructor is speciaal ontworpen om de constructor te zijn waarmee het verwijderen van de aangepaste HttpClientkan worden bepaald.
Microsoft.Rest.ServiceClient`1 heeft slechts één constructor die de controle over het verwijderen van de HttpClientaccepteert, dus noemen we die overload hier. Alle andere overloads van ConnectorClient hebben geen controle over deze parameter en deze wordt standaard ingesteld op true, wat resulteert in het verwijderen van de opgegeven HttpClient wanneer de ConnectorClient wordt verwijderd. Bij het hergebruik van HttpClient exemplaren tussen connectors, geeft u 'false' door voor disposeHttpClient
om te voorkomen dat ObjectDisposedException.
Van toepassing op
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())
Parameters
- baseUri
- Uri
- credentials
- MicrosoftAppCredentials
- addJwtTokenRefresher
- Boolean
- handlers
- DelegatingHandler[]
Van toepassing op
ConnectorClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- baseUri
- Uri
Basis-URI voor de Bot Connector-service.
- credentials
- MicrosoftAppCredentials
Referenties voor de Bot Connector-service.
- addJwtTokenRefresher
- Boolean
Afgeschaft, niet gebruiken.
- handlers
- DelegatingHandler[]
Optioneel, een matrix met DelegatingHandler objecten die moeten worden toegevoegd aan de HTTP-clientpijplijn.
Van toepassing op
ConnectorClient(Uri, MicrosoftAppCredentials, HttpClient, Boolean, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- baseUri
- Uri
Basis-URI voor de Bot Connector-service.
- credentials
- MicrosoftAppCredentials
Referenties voor de Bot Connector-service.
- customHttpClient
- HttpClient
De HTTP-client die moet worden gebruikt voor deze connectorclient.
- addJwtTokenRefresher
- Boolean
Afgeschaft, niet gebruiken.
- handlers
- DelegatingHandler[]
Optioneel, een matrix met DelegatingHandler objecten die moeten worden toegevoegd aan de HTTP-clientpijplijn.
Van toepassing op
ConnectorClient(Uri, ServiceClientCredentials, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- baseUri
- Uri
Optioneel. De basis-URI van de service.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Vereist. Abonnementsreferenties waarmee het clientabonnement uniek wordt geïdentificeerd.
- handlers
- DelegatingHandler[]
Optioneel. De delegerende handlers die moeten worden toegevoegd aan de HTTP-clientpijplijn.
Uitzonderingen
Gegenereerd wanneer een vereiste parameter null is.
Van toepassing op
ConnectorClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- credentials
- Microsoft.Rest.ServiceClientCredentials
Vereist. Abonnementsreferenties waarmee het clientabonnement uniek wordt geïdentificeerd.
- rootHandler
- HttpClientHandler
Optioneel. De http-clienthandler die wordt gebruikt voor het verwerken van http-transport.
- handlers
- DelegatingHandler[]
Optioneel. De delegerende handlers die moeten worden toegevoegd aan de HTTP-clientpijplijn.
Uitzonderingen
Gegenereerd wanneer een vereiste parameter null is.
Van toepassing op
ConnectorClient(ServiceClientCredentials, HttpClient, Boolean)
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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)
Parameters
- credentials
- Microsoft.Rest.ServiceClientCredentials
Vereist. Abonnementsreferenties waarmee het clientabonnement uniek wordt geïdentificeerd.
- httpClient
- HttpClient
HttpClient die moet worden gebruikt.
- disposeHttpClient
- Boolean
Waar: hiermee wordt de opgegeven httpClient verwijderd bij het aanroepen van ConnectorClient.Dispose(). False: wordt niet verwijderd opgegeven httpClient.
Uitzonderingen
Gegenereerd wanneer een vereiste parameter null is.
Van toepassing op
ConnectorClient(Uri, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- baseUri
- Uri
Optioneel. De basis-URI van de service.
- handlers
- DelegatingHandler[]
Optioneel. De delegerende handlers die moeten worden toegevoegd aan de http-clientpijplijn.
Uitzonderingen
Gegenereerd wanneer een vereiste parameter null is.
Van toepassing op
ConnectorClient(Uri, HttpClientHandler, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- baseUri
- Uri
Optioneel. De basis-URI van de service.
- rootHandler
- HttpClientHandler
Optioneel. De http-clienthandler die wordt gebruikt voor het verwerken van http-transport.
- handlers
- DelegatingHandler[]
Optioneel. De delegerende handlers die moeten worden toegevoegd aan de http-clientpijplijn.
Uitzonderingen
Gegenereerd wanneer een vereiste parameter null is.
Van toepassing op
ConnectorClient(HttpClientHandler, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- rootHandler
- HttpClientHandler
Optioneel. De http-clienthandler die wordt gebruikt voor het verwerken van http-transport.
- handlers
- DelegatingHandler[]
Optioneel. De delegerende handlers die moeten worden toegevoegd aan de http-clientpijplijn.
Van toepassing op
ConnectorClient(HttpClient, Boolean)
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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)
Parameters
- httpClient
- HttpClient
HttpClient die moet worden gebruikt.
- disposeHttpClient
- Boolean
Waar: hiermee wordt de opgegeven httpClient verwijderd bij het aanroepen van ConnectorClient.Dispose(). False: wordt niet verwijderd opgegeven httpClient.
Van toepassing op
ConnectorClient(ServiceClientCredentials, DelegatingHandler[])
Initialiseert een nieuw exemplaar van de ConnectorClient klasse.
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())
Parameters
- credentials
- Microsoft.Rest.ServiceClientCredentials
Vereist. Abonnementsreferenties waarmee het clientabonnement uniek wordt geïdentificeerd.
- handlers
- DelegatingHandler[]
Optioneel. De delegerende handlers die moeten worden toegevoegd aan de http-clientpijplijn.
Uitzonderingen
Gegenereerd wanneer een vereiste parameter null is.