The sample code for working with KeyVault inside a web application has the following code in it:
public static async Task GetSecret(string secr
This generic method can be used to override the deadlock issue:
public static T SafeAwaitResult(Func> f) { return Task.Run(async () => await f()).Result; }
Use:
SafeAwaitResult(() => foo(param1, param2));