Delen via


BotFrameworkAdapter.CreateOAuthApiClientAsync Methode

Definitie

Overloads

CreateOAuthApiClientAsync(ITurnContext)

Hiermee maakt u een OAuth-client voor de bot.

CreateOAuthApiClientAsync(ITurnContext, AppCredentials)

Hiermee maakt u een OAuth-client voor de bot met de referenties.

CreateOAuthApiClientAsync(ITurnContext)

Hiermee maakt u een OAuth-client voor de 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)

Parameters

turnContext
ITurnContext

Het contextobject voor de huidige beurt.

Retouren

Een OAuth-client voor de bot.

Van toepassing op

CreateOAuthApiClientAsync(ITurnContext, AppCredentials)

Hiermee maakt u een OAuth-client voor de bot met de referenties.

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)

Parameters

turnContext
ITurnContext

Het contextobject voor de huidige beurt.

oAuthAppCredentials
AppCredentials

AppCredentials voor OAuth.

Retouren

Een OAuth-client voor de bot.

Van toepassing op