I am using Prise Plugin Framework and MailKit SMTP Client.
During the ConnectAsync call, if the async call timeouts, it will throw a TaskCanceledException. This will be caught in the caller and after logging it will be thrown down the call stack. But this will not be caught after the Execute method in the Prise plugin and the app will crash - other exceptions are being caught fine and don't crash the app.
I am using Prise Plugin Framework and MailKit SMTP Client.
During the ConnectAsync call, if the async call timeouts, it will throw a TaskCanceledException. This will be caught in the caller and after logging it will be thrown down the call stack. But this will not be caught after the Execute method in the Prise plugin and the app will crash - other exceptions are being caught fine and don't crash the app.
This code is being called by the plugin with
return await service.ExecuteAsync(parameters, context);
I'm expecting this to throw the exception to its parent but it doesn't happen.
The plugin looks as follows: