We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0ff72b commit 2b834c5Copy full SHA for 2b834c5
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDataReader.cs
@@ -4734,7 +4734,7 @@ public override Task<bool> ReadAsync(CancellationToken cancellationToken)
4734
}
4735
4736
// Register first to catch any already expired tokens to be able to trigger cancellation event.
4737
- IDisposable registration = default;
+ CancellationTokenRegistration registration = default;
4738
if (cancellationToken.CanBeCanceled)
4739
{
4740
registration = cancellationToken.Register(SqlCommand.s_cancelIgnoreFailure, _command);
0 commit comments