I'm am trying to create a ConfigurationProvider that loads data from an http endpoint but there isn't a LoadAsync method to use.
LoadAsync method to the ConfigurationProvider abstract classAsyncConfigurationProvider that only has a LoadAsync method and not the Load methodusing .GetAwaiter().GetResult() on the task
+1
By the way to preserve exceptions the better alternative (to .Result) is probably .GetAwaiter().GetResult() see: https://github.com/aspnet/Security/issues/59
+1
Even in Azure's repository you can see how to solve it incorrectly.
Next step for this is to prepare API suggestion and sample usage as per guideline in https://github.com/dotnet/runtime/blob/master/docs/project/api-review-process.md
closing as dupe of https://github.com/dotnet/runtime/issues/36018
Most helpful comment
+1
Even in Azure's repository you can see how to solve it incorrectly.
https://github.com/Azure/azure-sdk-for-net/blob/82432299d2705c4efc81c288067f1af9f0b1eb52/sdk/extensions/Azure.Extensions.Configuration.Secrets/src/AzureKeyVaultConfigurationProvider.cs#L53