TestAdapter.GetSignInResourceAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
GetSignInResourceAsync(ITurnContext, String, CancellationToken) |
Ottiene una risorsa di accesso. |
GetSignInResourceAsync(ITurnContext, String, String, String, CancellationToken) |
Ottiene una risorsa di accesso. |
GetSignInResourceAsync(ITurnContext, AppCredentials, String, String, String, CancellationToken) |
Ottiene una risorsa di accesso. |
GetSignInResourceAsync(ITurnContext, String, CancellationToken)
Ottiene una risorsa di accesso.
public System.Threading.Tasks.Task<Microsoft.Bot.Schema.SignInResource> GetSignInResourceAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string connectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSignInResourceAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.SignInResource>
override this.GetSignInResourceAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.SignInResource>
Public Function GetSignInResourceAsync (turnContext As ITurnContext, connectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SignInResource)
Parametri
- turnContext
- ITurnContext
The TurnContext.
- connectionName
- String
ConnectionName.
- cancellationToken
- CancellationToken
AnnullamentoToken.
Restituisce
SignInResource con le informazioni di scambio di token e collegamento.
Implementazioni
Si applica a
GetSignInResourceAsync(ITurnContext, String, String, String, CancellationToken)
Ottiene una risorsa di accesso.
public System.Threading.Tasks.Task<Microsoft.Bot.Schema.SignInResource> GetSignInResourceAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string connectionName, string userId, string finalRedirect = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSignInResourceAsync : Microsoft.Bot.Builder.ITurnContext * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.SignInResource>
override this.GetSignInResourceAsync : Microsoft.Bot.Builder.ITurnContext * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.SignInResource>
Public Function GetSignInResourceAsync (turnContext As ITurnContext, connectionName As String, userId As String, Optional finalRedirect As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SignInResource)
Parametri
- turnContext
- ITurnContext
The TurnContext.
- connectionName
- String
ConnectionName.
- userId
- String
L'ID utente.
- finalRedirect
- String
URL di reindirizzamento finale.
- cancellationToken
- CancellationToken
AnnullamentoToken.
Restituisce
SignInResource con le informazioni di scambio di token e collegamento.
Implementazioni
Si applica a
GetSignInResourceAsync(ITurnContext, AppCredentials, String, String, String, CancellationToken)
Ottiene una risorsa di accesso.
public virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.SignInResource> GetSignInResourceAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Connector.Authentication.AppCredentials oAuthAppCredentials, string connectionName, string userId, string finalRedirect = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSignInResourceAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.SignInResource>
override this.GetSignInResourceAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.SignInResource>
Public Overridable Function GetSignInResourceAsync (turnContext As ITurnContext, oAuthAppCredentials As AppCredentials, connectionName As String, userId As String, Optional finalRedirect As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SignInResource)
Parametri
- turnContext
- ITurnContext
The TurnContext.
- oAuthAppCredentials
- AppCredentials
AppCredentials for OAuth.
- connectionName
- String
ConnectionName.
- userId
- String
L'ID utente.
- finalRedirect
- String
URL di reindirizzamento finale.
- cancellationToken
- CancellationToken
AnnullamentoToken.
Restituisce
SignInResource con le informazioni di scambio di token e collegamento.