Skip to content

Merge | TdsParserStateObject lifetime-related methods #3394

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

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant