-
Notifications
You must be signed in to change notification settings - Fork 315
Cleanup | Remove Abort/Doom From AsyncHelpers #3683
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
base: main
Are you sure you want to change the base?
Conversation
…ce and what made them different wasn't even utilized!
There was a problem hiding this 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 |
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.