SapientGuardian / mysql-connector-net-netstandard

ADO.NET driver for MySQL targeted against netstandard 1.3
GNU General Public License v2.0
46 stars 15 forks source link

Remove async and add .wait() in Open() so exceptions can be caught #22

Closed SapientGuardian closed 8 years ago

SapientGuardian commented 8 years ago

The async void signature of the Open method made it impossible for callers to catch exceptions in the correct context. This PR removes async and adds .wait() in Open() so exceptions can be caught. It also simplifies our ifdefs.