Skip to content

Merge | TdsParserStateObject lifetime-related methods#3394

Merged
mdaigle merged 39 commits intodotnet:mainfrom
edwardneal:merge/tdsparserstateobject-lifetimes
Sep 4, 2025
Merged

Merge | TdsParserStateObject lifetime-related methods#3394
mdaigle merged 39 commits intodotnet:mainfrom
edwardneal:merge/tdsparserstateobject-lifetimes

Conversation

@edwardneal
Copy link
Contributor

Description

We're now merging the lifetime-related methods on TdsParserStateObject in netfx, making them abstract and pushing them down to the derived TdsParserStateObjectNative class. This also handles some slightly unusual logic in CreatePhysicalSNIHandle, since spns is a string in netfx and a string array in netcore. I've needed to merge this type handling too.

Commit 469d840 onwards moves method-by-method. I've moved:

  • CreatePhysicalSNIHandle
  • AssignPendingDNSInfo
  • CreateSessionHandle
  • FreeGcHandle
  • Dispose

Relates to #1261.

edwardneal added 29 commits May 16, 2025 19:36
Also move ReadSyncOverAsync down in netcore's TdsParserStateObjectNative to aid later merge
Also reorder member in TdsParserStateObjectNative to simplify later merge
This also allows _writePacketCache to be migrated to TdsParserStateObjectNative in netfx.
@edwardneal edwardneal requested a review from a team as a code owner June 5, 2025 06:51
@mdaigle mdaigle merged commit 8b58d50 into dotnet:main Sep 4, 2025
236 checks passed
@edwardneal edwardneal deleted the merge/tdsparserstateobject-lifetimes branch September 4, 2025 22:04
This was referenced Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Common Project 🚮 Things that relate to the common project project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants