Skip to main content
Formatting
Source Link
Andrew Myers
  • 2.8k
  • 5
  • 36
  • 42

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

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

Or use this:

var result=result.GetAwaiter().GetResult().AccessToken 

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

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

Or use this:

var result=result.GetAwaiter().GetResult().AccessToken 
var result = Task.Run(async () => await configManager.GetConfigurationAsync()).ConfigureAwait(false); OpenIdConnectConfiguration config = result.GetAwaiter().GetResult(); 

Or use this:

var result=result.GetAwaiter().GetResult().AccessToken 

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

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

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

//or Or use this:

var result=result.GetAwaiter().GetResult().AccessToken

var result=result.GetAwaiter().GetResult().AccessToken 

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

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

//or

var result=result.GetAwaiter().GetResult().AccessToken

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

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

Or use this:

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

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

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

//or

var result=result.GetAwaiter().GetResult().AccessToken