Ejemplo n.º 1
0
 public async Task <AuthenticationResult> GetTokenAsync()
 {
     return(await Retry.Run(
                task : () => AcquireTokenAsync(),
                retryExceptionHandler : (ex, ct) => HandleAdalException(ex, ct)).ConfigureAwait(false));
 }
Ejemplo n.º 2
0
 public async Task <AuthenticationResult> GetTokenAsync(bool forceRefresh = false, string oauthScope = null)
 {
     return(await Retry.Run(
                task : () => AcquireTokenAsync(forceRefresh, oauthScope),
                retryExceptionHandler : (ex, ct) => HandleAdalException(ex, ct)).ConfigureAwait(false));
 }