Skip to content

Commit fa5a043

Browse files
authored
Clarify UseSocketsHttpHandler version availability (dotnet#5211)
1 parent c416e94 commit fa5a043

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xml/System.Net.Http/SocketsHttpHandler.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Starting with .NET Core 2.1, the `SocketsHttpHandler` class provides the impleme
3434
3535
- Consistent behavior across all .NET platforms.
3636
37-
If this change is undesirable, you can configure your application to use the older <xref:System.Net.Http.HttpClientHandler?displayProperty=nameWithType> class instead in a number of ways:
37+
If this change is undesirable and you are on .NET Core 2.1-3.1, you can configure your application to use the older <xref:System.Net.Http.HttpClientHandler?displayProperty=nameWithType> class instead in a number of ways:
3838
3939
- By calling the <xref:System.AppContext.SetSwitch%2A?displayProperty=nameWithType> method as follows:
4040
@@ -57,6 +57,8 @@ If this change is undesirable, you can configure your application to use the old
5757
5858
- By defining an environment variable named `DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER` and setting it to either `false` or 0.
5959
60+
These configuration options are not available starting with .NET 5.
61+
6062
]]></format>
6163
</remarks>
6264
</Docs>

0 commit comments

Comments
 (0)