4 ms·
An exception in an async void function will crash your entire ASP.NET Core application. There is no reason at all to use these in ASP.NET Core, always use Task
by fabian2k 5y ago
An exception in an async void function will crash your entire ASP.NET Core application. There is no reason at all to use these in ASP.NET Core, always use Task or ValueTask as the return type of your async functions.
- thrower123 5y agoThere are still event handlers. You just have to always remember to always wrap async void methods with try { ... } catch (Exception ex){ ...}