Condividi tramite


BotFrameworkAdapter.CreateOAuthApiClientAsync Metodo

Definizione

Overload

CreateOAuthApiClientAsync(ITurnContext)

Crea un client OAuth per il bot.

CreateOAuthApiClientAsync(ITurnContext, AppCredentials)

Crea un client OAuth per il bot con le credenziali.

CreateOAuthApiClientAsync(ITurnContext)

Crea un client OAuth per il bot.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient> CreateOAuthApiClientAsync (Microsoft.Bot.Builder.ITurnContext turnContext);
abstract member CreateOAuthApiClientAsync : Microsoft.Bot.Builder.ITurnContext -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient>
override this.CreateOAuthApiClientAsync : Microsoft.Bot.Builder.ITurnContext -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient>
Protected Overridable Function CreateOAuthApiClientAsync (turnContext As ITurnContext) As Task(Of OAuthClient)

Parametri

turnContext
ITurnContext

Oggetto contesto per il turno corrente.

Restituisce

Client OAuth per il bot.

Si applica a

CreateOAuthApiClientAsync(ITurnContext, AppCredentials)

Crea un client OAuth per il bot con le credenziali.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient> CreateOAuthApiClientAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Connector.Authentication.AppCredentials oAuthAppCredentials);
abstract member CreateOAuthApiClientAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient>
override this.CreateOAuthApiClientAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient>
Protected Overridable Function CreateOAuthApiClientAsync (turnContext As ITurnContext, oAuthAppCredentials As AppCredentials) As Task(Of OAuthClient)

Parametri

turnContext
ITurnContext

Oggetto contesto per il turno corrente.

oAuthAppCredentials
AppCredentials

AppCredentials for OAuth.

Restituisce

Client OAuth per il bot.

Si applica a