From 6e410fd8a92cde0bd4647011d90049de8d4c176f Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Wed, 14 Jun 2017 12:56:57 -0700 Subject: [PATCH] Add ConfigureAwait (#676) --- .../AzureKeyVaultConfigurationProvider.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Microsoft.Extensions.Configuration.AzureKeyVault/AzureKeyVaultConfigurationProvider.cs b/src/Microsoft.Extensions.Configuration.AzureKeyVault/AzureKeyVaultConfigurationProvider.cs index d94d79c..0f5a08d 100644 --- a/src/Microsoft.Extensions.Configuration.AzureKeyVault/AzureKeyVaultConfigurationProvider.cs +++ b/src/Microsoft.Extensions.Configuration.AzureKeyVault/AzureKeyVaultConfigurationProvider.cs @@ -38,11 +38,7 @@ namespace Microsoft.Extensions.Configuration.AzureKeyVault _manager = manager; } - /// - public override void Load() - { - LoadAsync().GetAwaiter().GetResult(); - } + public override void Load() => LoadAsync().ConfigureAwait(false).GetAwaiter().GetResult(); private async Task LoadAsync() {