ConnectorClient Construtores
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
ConnectorClient(DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- handlers
- DelegatingHandler[]
Optional. Os handlers de delegação para adicionar ao pipeline do cliente http.
Aplica-se a
ConnectorClient(Uri, MicrosoftAppCredentials, HttpClientHandler, Boolean, HttpClient, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- baseUri
- Uri
URI base para o serviço Bot Connector.
- credentials
- MicrosoftAppCredentials
Credenciais para o serviço Bot Connector.
- httpClientHandler
- HttpClientHandler
O manipulador de mensagens HTTP cliente para usar neste cliente conector.
- addJwtTokenRefresher
- Boolean
Descontinuado, não usar.
- customHttpClient
- HttpClient
O cliente HTTP a usar para este cliente conector.
- handlers
- DelegatingHandler[]
Opcional, um array de DelegatingHandler objetos para adicionar ao pipeline cliente HTTP.
Aplica-se a
ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- baseUri
- Uri
URI base para o serviço Bot Connector.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Credenciais para o serviço Bot Connector.
- customHttpClient
- HttpClient
O cliente HTTP a usar para este cliente conector.
- addJwtTokenRefresher
- Boolean
Descontinuado, não usar.
- handlers
- DelegatingHandler[]
Opcional, um array de DelegatingHandler objetos para adicionar ao pipeline cliente HTTP.
Aplica-se a
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())
Parâmetros
- baseUri
- Uri
- credentials
- MicrosoftAppCredentials
- httpClientHandler
- HttpClientHandler
- addJwtTokenRefresher
- Boolean
- handlers
- DelegatingHandler[]
Aplica-se a
ConnectorClient(Uri, String, String, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- baseUri
- Uri
URI base para o serviço Bot Connector.
- microsoftAppId
- String
Opcional, o ID da aplicação Microsoft para o recurso do bot.
Se ser nulo, esta definição é lida a partir da MicrosoftAppId definição do recurso de aplicação do bot.
- microsoftAppPassword
- String
Opcional, a palavra-passe da aplicação Microsoft para o bot.
Se ser nulo, esta definição é lida a partir da MicrosoftAppPassword definição do recurso de aplicação do bot.
- handlers
- DelegatingHandler[]
Opcional, um array de DelegatingHandler objetos para adicionar ao pipeline cliente HTTP.
Aplica-se a
ConnectorClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- baseUri
- Uri
Optional. O URI base do serviço.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Required. Credenciais de subscrição que identificam exclusivamente a subscrição do cliente.
- rootHandler
- HttpClientHandler
Optional. O handler de cliente http era usado para tratar do transporte http.
- handlers
- DelegatingHandler[]
Optional. Os handlers de delegação para adicionar ao pipeline do cliente http.
Exceções
Lançado quando um parâmetro exigido é nulo.
Aplica-se a
ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean)
Inicializa uma nova instância da ConnectorClient classe.
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)
Parâmetros
- baseUri
- Uri
URI base para o serviço Bot Connector.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Credenciais para o serviço Bot Connector.
- customHttpClient
- HttpClient
O cliente HTTP a usar para este cliente conector.
- disposeHttpClient
- Boolean
Se se deve descartar o HttpClient.
Observações
Constructor especificamente concebido para ser aquele que permite o controlo da eliminação do personalizado HttpClient.
Microsoft.Rest.ServiceClient`1 só tem um construtor que aceita o controlo da disposição do HttpClient, por isso chamamos a isso sobrecarga aqui. Todas as outras sobrecargas de ConnectorClient não controlam este parâmetro e ele será predefinido para verdadeiro, resultando na eliminação do fornecido HttpClient quando o ConnectorClient é descartado. Ao reutilizar HttpClient instâncias entre conectores, passe 'false' para disposeHttpClient evitar ObjectDisposedException.
Aplica-se a
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())
Parâmetros
- baseUri
- Uri
- credentials
- MicrosoftAppCredentials
- addJwtTokenRefresher
- Boolean
- handlers
- DelegatingHandler[]
Aplica-se a
ConnectorClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- baseUri
- Uri
URI base para o serviço Bot Connector.
- credentials
- MicrosoftAppCredentials
Credenciais para o serviço Bot Connector.
- addJwtTokenRefresher
- Boolean
Descontinuado, não usar.
- handlers
- DelegatingHandler[]
Opcional, um array de DelegatingHandler objetos para adicionar ao pipeline cliente HTTP.
Aplica-se a
ConnectorClient(Uri, MicrosoftAppCredentials, HttpClient, Boolean, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- baseUri
- Uri
URI base para o serviço Bot Connector.
- credentials
- MicrosoftAppCredentials
Credenciais para o serviço Bot Connector.
- customHttpClient
- HttpClient
O cliente HTTP a usar para este cliente conector.
- addJwtTokenRefresher
- Boolean
Descontinuado, não usar.
- handlers
- DelegatingHandler[]
Opcional, um array de DelegatingHandler objetos para adicionar ao pipeline cliente HTTP.
Aplica-se a
ConnectorClient(Uri, ServiceClientCredentials, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- baseUri
- Uri
Optional. O URI base do serviço.
- credentials
- Microsoft.Rest.ServiceClientCredentials
Required. Credenciais de subscrição que identificam exclusivamente a subscrição do cliente.
- handlers
- DelegatingHandler[]
Optional. Os handlers de delegação para adicionar ao pipeline do cliente http.
Exceções
Lançado quando um parâmetro exigido é nulo.
Aplica-se a
ConnectorClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- credentials
- Microsoft.Rest.ServiceClientCredentials
Required. Credenciais de subscrição que identificam exclusivamente a subscrição do cliente.
- rootHandler
- HttpClientHandler
Optional. O handler de cliente http era usado para tratar do transporte http.
- handlers
- DelegatingHandler[]
Optional. Os handlers de delegação para adicionar ao pipeline do cliente http.
Exceções
Lançado quando um parâmetro exigido é nulo.
Aplica-se a
ConnectorClient(ServiceClientCredentials, HttpClient, Boolean)
Inicializa uma nova instância da ConnectorClient classe.
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)
Parâmetros
- credentials
- Microsoft.Rest.ServiceClientCredentials
Required. Credenciais de subscrição que identificam exclusivamente a subscrição do cliente.
- httpClient
- HttpClient
HttpClient a ser utilizado.
- disposeHttpClient
- Boolean
True: irá eliminar o httpClient fornecido ao chamar ConnectorClient.Dispose(). Falso: não eliminará httpClient fornecido.
Exceções
Lançado quando um parâmetro exigido é nulo.
Aplica-se a
ConnectorClient(Uri, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- baseUri
- Uri
Optional. O URI base do serviço.
- handlers
- DelegatingHandler[]
Optional. Os handlers de delegação para adicionar ao pipeline do cliente http.
Exceções
Lançado quando um parâmetro exigido é nulo.
Aplica-se a
ConnectorClient(Uri, HttpClientHandler, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- baseUri
- Uri
Optional. O URI base do serviço.
- rootHandler
- HttpClientHandler
Optional. O handler de cliente http era usado para tratar do transporte http.
- handlers
- DelegatingHandler[]
Optional. Os handlers de delegação para adicionar ao pipeline do cliente http.
Exceções
Lançado quando um parâmetro exigido é nulo.
Aplica-se a
ConnectorClient(HttpClientHandler, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- rootHandler
- HttpClientHandler
Optional. O handler de cliente http era usado para tratar do transporte http.
- handlers
- DelegatingHandler[]
Optional. Os handlers de delegação para adicionar ao pipeline do cliente http.
Aplica-se a
ConnectorClient(HttpClient, Boolean)
Inicializa uma nova instância da ConnectorClient classe.
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)
Parâmetros
- httpClient
- HttpClient
HttpClient a ser utilizado.
- disposeHttpClient
- Boolean
True: irá eliminar o httpClient fornecido ao chamar ConnectorClient.Dispose(). Falso: não eliminará httpClient fornecido.
Aplica-se a
ConnectorClient(ServiceClientCredentials, DelegatingHandler[])
Inicializa uma nova instância da ConnectorClient classe.
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())
Parâmetros
- credentials
- Microsoft.Rest.ServiceClientCredentials
Required. Credenciais de subscrição que identificam exclusivamente a subscrição do cliente.
- handlers
- DelegatingHandler[]
Optional. Os handlers de delegação para adicionar ao pipeline do cliente http.
Exceções
Lançado quando um parâmetro exigido é nulo.