Metodo TokenProviderGetAuthorizationTokenAsync
|
Metodo per ottenere il token di accesso
Namespace: DedNet.CoreAssembly: DedNet (in DedNet.dll) Versione: 27.2.0-beta3
Sintassi public Task<string> GetAuthorizationTokenAsync(
Uri uri,
Dictionary<string, Object> additionalAuthenticationContext = null,
CancellationToken cancellationToken = default
)
Public Function GetAuthorizationTokenAsync (
uri As Uri,
Optional additionalAuthenticationContext As Dictionary(Of String, Object) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of String)
public:
virtual Task<String^>^ GetAuthorizationTokenAsync(
Uri^ uri,
Dictionary<String^, Object^>^ additionalAuthenticationContext = nullptr,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract GetAuthorizationTokenAsync :
uri : Uri *
?additionalAuthenticationContext : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _additionalAuthenticationContext = defaultArg additionalAuthenticationContext null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<string>
override GetAuthorizationTokenAsync :
uri : Uri *
?additionalAuthenticationContext : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _additionalAuthenticationContext = defaultArg additionalAuthenticationContext null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<string>
Parametri
- uri Uri
- additionalAuthenticationContext DictionaryString, Object (Optional)
- cancellationToken CancellationToken (Optional)
Valore di ritorno
TaskStringImplementa
IAccessTokenProvider.GetAuthorizationTokenAsync(Uri, DictionaryString, Object, CancellationToken)Vedi anche