Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

KeyVault Provider can Deadlock #664

@dfaivre-pcs

Description

@dfaivre-pcs

https://github.com/aspnet/Configuration/blob/dev/src/Microsoft.Extensions.Configuration.AzureKeyVault/AzureKeyVaultConfigurationProvider.cs#L44

AzureKeyVaultConfigurationProvider.Load does not configure it's GetAwaiter() continueOnCapturedContext option to false. Calling this from not async code bases can cause a deadlock.

Any chance we can use this instead?

LoadAsync().ConfigureAwait(false).GetAwaiter().GetResult()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions