- Notifications
You must be signed in to change notification settings - Fork311
Merge | Managed SNI#3345
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merge | Managed SNI#3345
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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 moves all .NET Core managed SNI implementation files into the common project while updating their file names, namespace, and type names to follow new naming conventions. Key changes include moving files to a shared location, renaming types (e.g. SNIPacket to SniPacket, SNIAsyncCallback to SniAsyncCallback), and wrapping the code with “#if NET” conditionals.
Reviewed Changes
Copilot reviewed 35 out of 35 changed files in this pull request and generated no comments.
File | Description |
---|---|
SniPacket.netcore.cs | Renaming of SNIPacket to SniPacket and updating internal references consistently. |
SniNpHandle.netcore.cs | Updated namespace and type names from SNINpHandle to SniNpHandle with consistent logging calls. |
SniMarsHandle.netcore.cs | Renamed classes and updated event/logging references to adhere to the new ManagedSni naming conventions. |
(Other files) | Similar renaming updates and #if NET wrapping applied across the managed SNI implementation files. |
Comments suppressed due to low confidence (3)
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ManagedSni/SniPacket.netcore.cs:15
- Ensure that the renaming from SNIPacket to SniPacket and similar types consistently uses the new naming convention (lowercase 'i') across the entire file.
namespace Microsoft.Data.SqlClient.ManagedSni
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ManagedSni/SniCommon.netcore.cs:63
- Verify that all log calls and references have been updated to use 'SniCommon' consistently, matching the updated naming convention.
SqlClientEventSource.Log.TrySNITraceEvent(nameof(SniCommon), ...
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ManagedSni/SniMarsHandle.netcore.cs:293
- Double-check that internal event scope usages reflect 'SniMarsHandle' accurately to avoid mis-references following the renaming.
using (TrySNIEventScope.Create(nameof(SniMarsHandle)))
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ManagedSni/LocalDB.netcore.Windows.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ManagedSni/SSRP.netcore.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ManagedSni/SniCommon.netcore.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
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.
All the changes look good to me. I'll take another look and approve when the CI is passing.
…nna roll back this change.
codecovbot commentedMay 21, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #3345 +/- ##======================================= Coverage 65.26% 65.27% ======================================= Files 299 300 +1 Lines 65640 65640 =======================================+ Hits 42842 42846 +4+ Misses 22798 22794 -4
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:
|
# Conflicts:#src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj#src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/PacketHandle.Windows.cs
cc23e04
intomainUh oh!
There was an error while loading.Please reload this page.
Description: This PR looks a lot bigger than it really is. The goal here is to move all the files for netcore's managed SNI implementation into the common project. I also took the liberty to make some other changes at the same time.
Testing: Project builds on windows and linux. There is no change to functionality, just moving code around.