Udostępnij za pośrednictwem


ManagedIdentityAuthenticator(String, String, HttpClient, ILogger) Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy ManagedIdentityAuthenticator.

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

Parametry

appId
String

Identyfikator klienta tożsamości zarządzanej, który ma być używany do uzyskiwania tokenów.

resource
String

Zasób, dla którego chcesz uzyskać token.

customHttpClient
HttpClient

Dostosowane wystąpienie klasy HttpClient.

logger
ILogger

Typ używany do rejestrowania.

Dotyczy