When calling await command.ExecuteReturnValueAsync() inside a using block I get an exception saying a task was cancelled.
If I call await Task.Delay(100) before the end of the using scope, the call succeeds.
Similarly, if the call is to a stored procedure with a return value, I get a NullReferenceException if I attempt to read the return value without delaying first.
When calling
await command.ExecuteReturnValueAsync()inside a using block I get an exception saying a task was cancelled.If I call
await Task.Delay(100)before the end of the using scope, the call succeeds.Similarly, if the call is to a stored procedure with a return value, I get a
NullReferenceExceptionif I attempt to read the return value without delaying first.