MicrosoftAppCredentials 构造函数

定义

重载

MicrosoftAppCredentials(String, String, HttpClient, ILogger, String)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String, String, String, HttpClient, ILogger, String)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String, String, HttpClient, ILogger, String)

初始化 MicrosoftAppCredentials 类的新实例。

public MicrosoftAppCredentials (string appId, string password, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default, string oAuthScope = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
Public Sub New (appId As String, password As String, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing, Optional oAuthScope As String = Nothing)

参数

appId
String

Microsoft应用 ID。

password
String

Microsoft应用密码。

customHttpClient
HttpClient

获取令牌时要使用的可选 HttpClient

logger
ILogger

可选 ILogger,用于在获取和管理凭据时收集遥测数据。

oAuthScope
String

令牌的范围。

适用于

MicrosoftAppCredentials(String, String, String, HttpClient, ILogger, String)

初始化 MicrosoftAppCredentials 类的新实例。

public MicrosoftAppCredentials (string appId, string password, string channelAuthTenant, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default, string oAuthScope = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
Public Sub New (appId As String, password As String, channelAuthTenant As String, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing, Optional oAuthScope As String = Nothing)

参数

appId
String

Microsoft应用 ID。

password
String

Microsoft应用密码。

channelAuthTenant
String

自选。 oauth 令牌租户。

customHttpClient
HttpClient

获取令牌时要使用的可选 HttpClient

logger
ILogger

可选 ILogger,用于在获取和管理凭据时收集遥测数据。

oAuthScope
String

令牌的范围。

适用于