Closed mattwoberts closed 6 years ago
Glad you like!
Might want to raise a bug in corefx as TryGetConnection is a blocking call:
private bool TryGetConnection(DbConnection owningObject, uint waitForMultipleObjectsTimeout, bool allowCreate, bool onlyOneCheckConnection, DbConnectionOptions userOptions, out DbConnectionInternal connection)
{
// ...
waitResult = WaitHandle.WaitAny(_waitHandles.GetHandles(allowCreate), unchecked((int)waitForMultipleObjectsTimeout));
Should probably use a async
SemphoreSlim.WaitAsync
for the async path or something similar.
Also link issue to here, so can follow progress
Can you try with the latest package and see if its still reported? https://www.nuget.org/packages/Ben.BlockingDetector/0.0.3
Aha - all gone now - now I'm left with actual valid messages about my razor views not using the async versions of the helpers 👍
Hi,
Firstly, thanks for this little tool :) I'm just playing around with it, while I try to figure some weird occasional errors with my asp.net core web app. I've noticed that a simple test, with an async call to Dapper's
QueryAsync
is tripping the warning - which seems slightly odd. Here's my test action method:Is that a false positive, or have I missed something? Here's the stack:
Cheers :)