C# MySQL Asynchronous methods not working
<p>Good day everyone. I've been using the MySQL API to interact with my MySQL database. The only problem is that the asynchronous methods aren't working.</p>

<p><strong>Example of my code:</strong></p>

<pre><code>private MySqlConnection mySqlConnection;

private async Task OpenConnection() {
    //Assign mySqlConnection if null
    //Check if mySqlConnection is closed
    await mySqlConnection.OpenAsync();
}

private async Task&lt;bool&gt; ExampleMethod() {
    try {
        await OpenConnection();
        return true;
    } catch {
        return false;
    }
}
</code></pre>

<p>Whenever I execute <code>ExampleMethod</code> my application pauses until the method has completed its operation. Could someone tell me what could be the problem?</p>

<p>Thanks in advance.</p>