Skip to content

Conversation

benrr101
Copy link
Contributor

Description

In the rush to remove CER code (see #3535) I overlooked that some of the AsyncHelpers code became identical between netcore and netfx. As such, this PR cleans up that code to 1) unify netcore/netfx code for AsyncHelpers and 2) remove the no-longer-used connectionToDoom/connectionToAbort parameters to the AsyncHelpers.

Issues

N/A

Testing

Code continues to compile and will be validated by CI.

@benrr101 benrr101 added this to the 7.0.0-preview3 milestone Oct 10, 2025
@benrr101 benrr101 added the Code Health 💊 Issues/PRs that are targeted to source code quality improvements. label Oct 10, 2025
@benrr101 benrr101 requested a review from a team as a code owner October 10, 2025 22:37
@Copilot Copilot AI review requested due to automatic review settings October 10, 2025 22:37
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR cleans up the AsyncHelpers code by removing the no-longer-used connectionToDoom/connectionToAbort parameters that were previously needed for Constrained Execution Region (CER) code. The cleanup unifies netcore and netfx implementations and simplifies method signatures.

Key changes:

  • Remove connectionToDoom and connectionToAbort parameters from AsyncHelper methods
  • Clean up conditional compilation directives that are no longer needed
  • Add named parameters to improve code readability

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
TdsParser.cs Updated AsyncHelper calls to use named parameters and remove connectionToDoom parameter
SqlUtil.cs Removed connectionToDoom/connectionToAbort parameters from AsyncHelper methods and cleaned up conditional compilation
SqlBulkCopy.cs Updated AsyncHelper calls to use named parameters and remove connection parameters
TdsParserStateObject.netfx.cs Removed conditional compilation for connectionToAbort parameter in AsyncHelper call

@paulmedynski paulmedynski self-assigned this Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Health 💊 Issues/PRs that are targeted to source code quality improvements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants