Calling Flurl from winforms app never returns a result
<p>Quick background.  Used Flurl inside a class library I built to simplify my code for communicating with a cloud storage api.  Works beautifully when calling the library from a console app used to test all of the methods.  When attempting to use the exact same class library with a simple winform, the same method that returns very quickly using the console app now seems to never return a result.  When debugging, the code below gets to the ".GetAsync()" line and then never returns a result and also prevents the debug session from continuing.  No error message is ever thrown.</p>

<p>I found a comment on the Flurl site that someone seemed to be having this same issue but, it doesn't seem like they posted the question here as was recommended.  Anything that could point me in the right direction would be greatly appreciated.</p>

<p><strong>Flurl code wrapped in async method</strong></p>

<pre><code>public async Task&lt;AccountInfo&gt; Authorize()
    {
        string credentials = Convert.ToBase64String(Encoding.UTF8.GetBytes(Utils.ToNonSecureString(accountId) + ":" + Utils.ToNonSecureString(applicationKey)));
        var result = await B2UrlType.Authorize
            .WithHeader("Authorization", "Basic " + credentials)
            .GetAsync()
            .ReceiveJson&lt;AccountInfo&gt;();
        return result;
    }
</code></pre>

<p><strong>Console app calling code that works perfectly</strong></p>

<pre><code>if (client == null)
        {
            var vault = new Vault();
            Console.WriteLine("Retrieving account keys");
            client = new Client(vault.GetAccountId(), vault.GetApiKey());
            Console.WriteLine("Successfully retrieved account keys");
            Console.WriteLine("Created new client");
            client.Authorize().GetAwaiter().GetResult();
        }
</code></pre>

<p><strong>Winform calling code that does not return</strong></p>

<pre><code>private Client client;
    public MainWindow()
    {
        InitializeComponent();
        var vault = new Vault();
        client = new Client(vault.GetAccountId(), vault.GetApiKey());
        client.Authorize().GetAwaiter().GetResult();

    }
</code></pre>