Feature | Add SqlDataSourceEnumerator#1430
Merged
Merged
Conversation
Added UDP Broadcast to SSRP
…Native and Managed) Added SqlDataSourceEnumerator Public API and AppContext for Helpers (Native and Managed)
Added AppContext change to unit test
…to avoid heap corruption issue
5b6e9b9 to
0bc15f8
Compare
# Conflicts: # src/Microsoft.Data.SqlClient/src/Microsoft/Data/Common/AdapterUtil.cs # src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj
…a from SQL Browser
DavoudEshtehari
left a comment
Contributor
There was a problem hiding this comment.
For the record:
- Sanitize your code by considering the warning and messages in the Error List.
- Include traces using
EventSourceas much as possible? - Add documentation for the public APIs.
- Include the new public APIs in ref files.
- Add inline comments with reference.
exclude appcontext test
Comments and url references
review comment
fix strbuilder overwrite
VS Suggestions
created util for sqldatasourceenumerator
more utils
license for util file
JRahnama
approved these changes
Mar 2, 2022
DavoudEshtehari
suggested changes
Mar 4, 2022
Comment on lines
+28
to
+38
| [DllImport(SNI, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SNIServerEnumOpenWrapper")] | ||
| internal static extern IntPtr SNIServerEnumOpen(); | ||
|
|
||
| [DllImport(SNI, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SNIServerEnumCloseWrapper")] | ||
| internal static extern void SNIServerEnumClose([In] IntPtr packet); | ||
|
|
||
| [DllImport(SNI, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SNIServerEnumReadWrapper", CharSet = CharSet.Unicode)] | ||
| internal static extern int SNIServerEnumRead([In] IntPtr packet, | ||
| [In][MarshalAs(UnmanagedType.LPArray)] char[] readBuffer, | ||
| [In] int bufferLength, | ||
| [MarshalAs(UnmanagedType.Bool)] out bool more); |
Contributor
There was a problem hiding this comment.
These lines should be moved into SNINativeMethodWrapper.Windows.cs. And modify the native helper accordingly.
SNI Update
This reverts commit 7aebf45.
Merged
SqlDataSourceEnumerator test update and different file for unix, windows
johnnypham
reviewed
Mar 8, 2022
johnnypham
reviewed
Mar 9, 2022
DavoudEshtehari
approved these changes
Mar 9, 2022
johnnypham
approved these changes
Mar 9, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added UDP Broadcast to SSRP
Details about Request/Response/timeouts are available in specification
Update: