ConnectorClient コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
ConnectorClient(DelegatingHandler[])
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())
パラメーター
- handlers
- DelegatingHandler[]
省略可能。 http クライアント パイプラインに追加する委任ハンドラー。
適用対象
ConnectorClient(Uri, MicrosoftAppCredentials, HttpClientHandler, Boolean, HttpClient, DelegatingHandler[])
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())
パラメーター
- baseUri
- Uri
Bot Connector サービスのベース URI。
- credentials
- MicrosoftAppCredentials
Bot Connector サービスの資格情報。
- httpClientHandler
- HttpClientHandler
このコネクタ クライアントに使用する HTTP クライアント メッセージ ハンドラー。
- addJwtTokenRefresher
- Boolean
非推奨。使用しないでください。
- customHttpClient
- HttpClient
このコネクタ クライアントに使用する HTTP クライアント。
- handlers
- DelegatingHandler[]
省略可能。HTTP クライアント パイプラインに追加するオブジェクトの配列 DelegatingHandler 。
適用対象
ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean, DelegatingHandler[])
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())
パラメーター
- baseUri
- Uri
Bot Connector サービスのベース URI。
- credentials
- Microsoft.Rest.ServiceClientCredentials
Bot Connector サービスの資格情報。
- customHttpClient
- HttpClient
このコネクタ クライアントに使用する HTTP クライアント。
- addJwtTokenRefresher
- Boolean
非推奨。使用しないでください。
- handlers
- DelegatingHandler[]
省略可能。HTTP クライアント パイプラインに追加するオブジェクトの配列 DelegatingHandler 。
適用対象
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())
パラメーター
- baseUri
- Uri
- credentials
- MicrosoftAppCredentials
- httpClientHandler
- HttpClientHandler
- addJwtTokenRefresher
- Boolean
- handlers
- DelegatingHandler[]
適用対象
ConnectorClient(Uri, String, String, DelegatingHandler[])
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())
パラメーター
- baseUri
- Uri
Bot Connector サービスのベース URI。
- microsoftAppId
- String
オプション。ボット リソースの Microsoft アプリ ID。
null の場合、この設定はボットの MicrosoftAppId
アプリケーション リソースの設定から読み取られます。
- microsoftAppPassword
- String
省略可能です。ボットの Microsoft アプリ パスワード。
null の場合、この設定はボットの MicrosoftAppPassword
アプリケーション リソースの設定から読み取られます。
- handlers
- DelegatingHandler[]
省略可能。HTTP クライアント パイプラインに追加するオブジェクトの配列 DelegatingHandler 。
適用対象
ConnectorClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
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())
パラメーター
- baseUri
- Uri
省略可能。 サービスのベース URI。
- credentials
- Microsoft.Rest.ServiceClientCredentials
必須。 クライアント サブスクリプションを一意に識別するサブスクリプション資格情報。
- rootHandler
- HttpClientHandler
省略可能。 http トランスポートを処理するために使用される http クライアント ハンドラー。
- handlers
- DelegatingHandler[]
任意。 http クライアント パイプラインに追加する委任ハンドラー。
例外
必須パラメーターが null の場合にスローされます。
適用対象
ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean)
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)
パラメーター
- baseUri
- Uri
Bot Connector サービスのベース URI。
- credentials
- Microsoft.Rest.ServiceClientCredentials
Bot Connector サービスの資格情報。
- customHttpClient
- HttpClient
このコネクタ クライアントに使用する HTTP クライアント。
- disposeHttpClient
- Boolean
を破棄 HttpClientするかどうか。
注釈
コンストラクターは、カスタム HttpClientの破棄を制御できるように特別に設計されています。
Microsoft.Rest.ServiceClient`1 には、 の破棄の制御を受け入れるコンストラクターが 1 つしかないため HttpClient、ここでそのオーバーロードを呼び出します。 の他のすべてのオーバーロードConnectorClientでは、このパラメーターは制御されず、既定値は true になり、 が破棄されたときにConnectorClient指定HttpClientされた が破棄されます。 コネクタ間でインスタンスを再利用するHttpClient場合は、 を避ObjectDisposedExceptionけるために、 に 'false' をdisposeHttpClient
渡します。
適用対象
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())
パラメーター
- baseUri
- Uri
- credentials
- MicrosoftAppCredentials
- addJwtTokenRefresher
- Boolean
- handlers
- DelegatingHandler[]
適用対象
ConnectorClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])
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())
パラメーター
- baseUri
- Uri
Bot Connector サービスのベース URI。
- credentials
- MicrosoftAppCredentials
Bot Connector サービスの資格情報。
- addJwtTokenRefresher
- Boolean
非推奨。使用しないでください。
- handlers
- DelegatingHandler[]
省略可能。HTTP クライアント パイプラインに追加するオブジェクトの配列 DelegatingHandler 。
適用対象
ConnectorClient(Uri, MicrosoftAppCredentials, HttpClient, Boolean, DelegatingHandler[])
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())
パラメーター
- baseUri
- Uri
Bot Connector サービスのベース URI。
- credentials
- MicrosoftAppCredentials
Bot Connector サービスの資格情報。
- customHttpClient
- HttpClient
このコネクタ クライアントに使用する HTTP クライアント。
- addJwtTokenRefresher
- Boolean
非推奨。使用しないでください。
- handlers
- DelegatingHandler[]
省略可能。HTTP クライアント パイプラインに追加するオブジェクトの配列 DelegatingHandler 。
適用対象
ConnectorClient(Uri, ServiceClientCredentials, DelegatingHandler[])
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())
パラメーター
- baseUri
- Uri
省略可能。 サービスのベース URI。
- credentials
- Microsoft.Rest.ServiceClientCredentials
必須。 クライアント サブスクリプションを一意に識別するサブスクリプション資格情報。
- handlers
- DelegatingHandler[]
省略可能。 http クライアント パイプラインに追加する委任ハンドラー。
例外
必須パラメーターが null の場合にスローされます。
適用対象
ConnectorClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
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())
パラメーター
- credentials
- Microsoft.Rest.ServiceClientCredentials
必須。 クライアント サブスクリプションを一意に識別するサブスクリプション資格情報。
- rootHandler
- HttpClientHandler
省略可能。 http トランスポートを処理するために使用される http クライアント ハンドラー。
- handlers
- DelegatingHandler[]
省略可能。 http クライアント パイプラインに追加する委任ハンドラー。
例外
必須パラメーターが null の場合にスローされます。
適用対象
ConnectorClient(ServiceClientCredentials, HttpClient, Boolean)
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)
パラメーター
- credentials
- Microsoft.Rest.ServiceClientCredentials
必須。 クライアント サブスクリプションを一意に識別するサブスクリプション資格情報。
- httpClient
- HttpClient
使用する HttpClient。
- disposeHttpClient
- Boolean
True: ConnectorClient.Dispose() を呼び出すと、指定された httpClient が破棄されます。 False: 指定された httpClient は破棄されません。
例外
必要なパラメーターが null の場合にスローされます。
適用対象
ConnectorClient(Uri, DelegatingHandler[])
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())
パラメーター
- baseUri
- Uri
省略可能。 サービスのベース URI。
- handlers
- DelegatingHandler[]
省略可能。 http クライアント パイプラインに追加する委任ハンドラー。
例外
必要なパラメーターが null の場合にスローされます。
適用対象
ConnectorClient(Uri, HttpClientHandler, DelegatingHandler[])
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())
パラメーター
- baseUri
- Uri
任意。 サービスのベース URI。
- rootHandler
- HttpClientHandler
任意。 http トランスポートの処理に使用される http クライアント ハンドラー。
- handlers
- DelegatingHandler[]
省略可能。 http クライアント パイプラインに追加する委任ハンドラー。
例外
必要なパラメーターが null の場合にスローされます。
適用対象
ConnectorClient(HttpClientHandler, DelegatingHandler[])
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())
パラメーター
- rootHandler
- HttpClientHandler
省略可能。 http トランスポートの処理に使用される http クライアント ハンドラー。
- handlers
- DelegatingHandler[]
省略可能。 http クライアント パイプラインに追加する委任ハンドラー。
適用対象
ConnectorClient(HttpClient, Boolean)
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)
パラメーター
- httpClient
- HttpClient
使用する HttpClient。
- disposeHttpClient
- Boolean
True: ConnectorClient.Dispose() を呼び出すと、指定された httpClient が破棄されます。 False: 指定された httpClient は破棄されません。
適用対象
ConnectorClient(ServiceClientCredentials, DelegatingHandler[])
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())
パラメーター
- credentials
- Microsoft.Rest.ServiceClientCredentials
必須。 クライアント サブスクリプションを一意に識別するサブスクリプション資格情報。
- handlers
- DelegatingHandler[]
任意。 http クライアント パイプラインに追加する委任ハンドラー。
例外
必要なパラメーターが null の場合にスローされます。