The "Util.CacheAsync" get hang on specific condition
Here are the steps to reproduce the issue.
Open my query: https://share.linqpad.net/67t4ltq3.linq
Execute Query
Uncomment Line 7,
//return;
toreturn;
Execute Query again.
The query will be in a dead lock state.
Comments
There is indeed a bug here, whereby the task never completes instead of posting an exception.
The exception that should appear is as follows:
If you add that attribute to your VideoDetails class, it will run correctly.
This is now fixed in the latest beta, so in this scenario you will now see a helpful error message rather than a non-completing task.