-
Couldn't load subscription status.
- Fork 316
Add IP address preference support for TCP connection #1015
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
612f259
Add IPAddressPreference net core
karinazhou 2314a55
Merge branch 'main' of https://github.com/dotnet/SqlClient into IPAdd…
karinazhou b5c42ff
netcore SynonymCount update
karinazhou 5ca9b4a
Add keyword in netfx
karinazhou 444ab9b
Add IP preference logic
karinazhou ce608d3
Fix incorrect description
karinazhou 673dc39
Apply suggestions from code review
karinazhou 1f27eb7
Update DNS cache descripption
karinazhou 5d42d26
Merge branch 'IPAddressPreference' of https://github.com/karinazhou/S…
karinazhou 63d07bc
Merge remote-tracking branch 'upstream/main' into pr/1015
johnnypham 37a0b77
tests for ip address preference
johnnypham 0b6c0e4
Update SNITcpHandle.cs
johnnypham 8fa43b8
Update ConfigurableIpPreferenceTest.cs
johnnypham dfeea18
Update src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlCli…
johnnypham b5a625b
Improvement
0cf2304
Merge remote-tracking branch 'UpStream/main' into IPAddressPreference
5642e74
Add new configurations
e8b3ca4
Revert "Add new configurations"
ac69f38
Update default config
16935d4
Add test
ee3dbd3
Merge remote-tracking branch 'UpStream/main' into IPAddressPreference
4a1d7f7
Apply suggestions from code review
DavoudEshtehari c71143c
Address comments
8464adb
Apply suggestions from code review
DavoudEshtehari ebbc42b
Address comments
12ff426
Apply suggestions from code review
DavoudEshtehari a2bc385
Address comments
0f27fde
Update doc/snippets/Microsoft.Data.SqlClient/SqlConnectionIPAddressPr…
DavoudEshtehari 019fce0
Address comments
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
doc/snippets/Microsoft.Data.SqlClient/SqlConnectionIPAddressPreference.xml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| <docs> | ||
| <members name="SqlConnectionIPAddressPreference"> | ||
| <SqlConnectionIPAddressPreferenceNetfx> | ||
| <summary> | ||
| Specifies a value for IP address preference during a TCP connection. | ||
| </summary> | ||
| <remarks> | ||
| <format type="text/markdown"><![CDATA[ | ||
|
|
||
| ## Remarks | ||
| If `Multi Subnet Failover` or "Transparent Network IP Resolution" is set to `true`, this setting has no effect. | ||
| ]]></format> | ||
| </remarks> | ||
| </SqlConnectionIPAddressPreferenceNetfx> | ||
| <SqlConnectionIPAddressPreference> | ||
| <summary> | ||
| Specifies a value for IP address preference during a TCP connection. | ||
| </summary> | ||
karinazhou marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <remarks> | ||
| <format type="text/markdown"><![CDATA[ | ||
|
|
||
| ## Remarks | ||
| If `Multi Subnet Failover` is set to `true`, this setting has no effect. | ||
DavoudEshtehari marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ]]></format> | ||
| </remarks> | ||
| </SqlConnectionIPAddressPreference> | ||
| <IPv4First> | ||
| <summary>Connects using IPv4 address(es) first. If the connection fails, try IPv6 address(es), if provided. This is the default value.</summary> | ||
| <value>0</value> | ||
| </IPv4First> | ||
| <IPv6First> | ||
| <summary>Connect using IPv6 address(es) first. If the connection fails, try IPv4 address(es), if available.</summary> | ||
| <value>1</value> | ||
| </IPv6First> | ||
| <UsePlatformDefault> | ||
| <summary>Connects with IP addresses in the order the underlying platform or operating system provides them.</summary> | ||
| <value>2</value> | ||
| </UsePlatformDefault> | ||
| </members> | ||
| </docs> | ||
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.