Skip to content

Commit 2b834c5

Browse files
authored
Fix break
1 parent c0ff72b commit 2b834c5

File tree

1 file changed

+1
-1
lines changed
  • src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient

1 file changed

+1
-1
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDataReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4734,7 +4734,7 @@ public override Task<bool> ReadAsync(CancellationToken cancellationToken)
47344734
}
47354735

47364736
// Register first to catch any already expired tokens to be able to trigger cancellation event.
4737-
IDisposable registration = default;
4737+
CancellationTokenRegistration registration = default;
47384738
if (cancellationToken.CanBeCanceled)
47394739
{
47404740
registration = cancellationToken.Register(SqlCommand.s_cancelIgnoreFailure, _command);

0 commit comments

Comments
 (0)