-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dapper cancelling only ExecuteReaderAsync not Reader.ReadAsync with MultiMap #555
Comments
I do some more investigation ... In fact it is because QueryAsync with multimap is using MultiMapImpl which doesn not use reader.ReadAsync() but reader.Read()...
|
Registering CancellationToken with DbCommand.Cancel will allow cancellation even with synchrouns DbReader.Read
Any chances for fixing this? |
Dapper will fail with such Test
solution:
replace all code like(in SQlMapper.Async.cs):
with
solution is simillar to this answer on SO but he is doing it at wrong place (and not dissposing the registration) ...
The text was updated successfully, but these errors were encountered: