Partilhar via


TokenProvider.CreateAzureActiveDirectoryTokenProvider Método

Definição

Cria um provedor de token do Azure Active Directory.

public static Microsoft.Azure.EventHubs.TokenProvider CreateAzureActiveDirectoryTokenProvider (Microsoft.Azure.EventHubs.AzureActiveDirectoryTokenProvider.AuthenticationCallback authCallback, string authority, object state = default);
static member CreateAzureActiveDirectoryTokenProvider : Microsoft.Azure.EventHubs.AzureActiveDirectoryTokenProvider.AuthenticationCallback * string * obj -> Microsoft.Azure.EventHubs.TokenProvider
Public Shared Function CreateAzureActiveDirectoryTokenProvider (authCallback As AzureActiveDirectoryTokenProvider.AuthenticationCallback, authority As String, Optional state As Object = Nothing) As TokenProvider

Parâmetros

authCallback
AzureActiveDirectoryTokenProvider.AuthenticationCallback

O delegado de autenticação para fornecer o token de acesso.

authority
String

Endereço da autoridade para emitir o token.

state
Object

Estado a ser entregue ao retorno de chamada.

Retornos

O TokenProvider para retornar o token web Json.

Aplica-se a