Skip to main content

var result = Task.Run(async () => await configManager.GetConfigurationAsync()).ConfigureAwait(false);

OpenIdConnectConfiguration config = result.GetAwaiter().GetResult(); 

Or use this:

var result=result.GetAwaiter().GetResult().AccessToken 
rajesh A
  • 393
  • 4
  • 10