-
Notifications
You must be signed in to change notification settings - Fork 317
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
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 |
40c730d
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3683 +/- ##
===========================================
+ Coverage 77.34% 90.82% +13.48%
===========================================
Files 271 6 -265
Lines 45245 316 -44929
===========================================
- Hits 34993 287 -34706
+ Misses 10252 29 -10223
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.