I have console application and code as below,
My problem is before ContinueWith task finish, the console application ends, it does not waits the continueWith to fini
I tried another solution that worked for me :
try { taskNotOnFaulted.Wait(); } catch { taskOnlyOnFaulted.Wait(); }