Skip to content

Commit 07ec5b0

Browse files
authored
servicepointmanager obsoletion (#43365)
1 parent bcab4c6 commit 07ec5b0

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed

docs/core/compatibility/9.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ If you're migrating an app to .NET 9, the breaking changes listed here might aff
8282
|-----------------------------------------------------------------------------------|---------------------|--------------------|
8383
| [HttpClientFactory logging redacts header values by default](networking/9.0/redact-headers.md) | Behavioral change | RC 1 |
8484
| [HttpListenerRequest.UserAgent is nullable](networking/9.0/useragent-nullable.md) | Source incompatible | Preview 1 |
85+
| [API obsoletions](core-libraries/9.0/obsolete-apis-with-custom-diagnostics.md) | Source incompatible | Preview 6 |
8586

8687
## SDK and MSBuild
8788

docs/core/compatibility/core-libraries/9.0/obsolete-apis-with-custom-diagnostics.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: "Breaking change: .NET 9 obsoletions with custom IDs"
33
titleSuffix: ""
4-
description: Learn about the .NET 9 breaking change in core .NET libraries where some APIs have been marked as obsolete with a custom diagnostic ID.
5-
ms.date: 08/07/2024
4+
description: Learn about the APIs that have been marked as obsolete in .NET 9 with a custom diagnostic ID.
5+
ms.date: 11/06/2024
66
---
77
# API obsoletions with non-default diagnostic IDs (.NET 9)
88

@@ -17,6 +17,7 @@ The following table lists the custom diagnostic IDs and their corresponding warn
1717
| Diagnostic ID | Description | Severity |
1818
| - | - |
1919
| [SYSLIB0009](../../../../fundamentals/syslib-diagnostics/syslib0009.md) | <xref:System.Net.AuthenticationManager> is not supported. Methods will no-op or throw <xref:System.PlatformNotSupportedException>. | Warning |
20+
| [SYSLIB0014: WebRequest, HttpWebRequest, ServicePoint, WebClient are obsolete](../../../../fundamentals/syslib-diagnostics/syslib0014.md) | <xref:System.Net.ServicePointManager> is fully obsolete. Settings on <xref:System.Net.ServicePointManager> don't affect <xref:System.Net.Security.SslStream> or <xref:System.Net.Http.HttpClient> (this behavior hasn't changed since .NET 6). | Warning |
2021
| [SYSLIB0054](../../../../fundamentals/syslib-diagnostics/syslib0054.md) | <xref:System.Threading.Thread.VolatileRead%2A?displayProperty=nameWithType> and <xref:System.Threading.Thread.VolatileWrite%2A?displayProperty=nameWithType> are obsolete. Use <xref:System.Threading.Volatile.Read%2A?displayProperty=nameWithType> or <xref:System.Threading.Volatile.Write%2A?displayProperty=nameWithType> instead. | Warning |
2122
| [SYSLIB0055](../../../../fundamentals/syslib-diagnostics/syslib0055.md) | `AdvSimd.ShiftRightLogicalRoundedNarrowingSaturate*` methods with signed parameters are obsolete. Use the unsigned overloads instead. | Warning |
2223
| [SYSLIB0056](../../../../fundamentals/syslib-diagnostics/syslib0056.md) | `Assembly.LoadFrom` with a custom `AssemblyHashAlgorithm` is obsolete. Use overloads without an `AssemblyHashAlgorithm`. | Warning |
@@ -42,6 +43,10 @@ These obsoletions can affect [source compatibility](../../categories.md#source-c
4243

4344
- <xref:System.Net.AuthenticationManager?displayProperty=fullName>
4445

46+
### SYSLIB0014
47+
48+
- <xref:System.Net.ServicePointManager?displayProperty=fullName>
49+
4550
### SYSLIB0054
4651

4752
- <xref:System.Threading.Thread.VolatileRead%2A?displayProperty=fullName>

docs/core/compatibility/networking/6.0/webrequest-deprecated.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,6 @@ For FTP, since <xref:System.Net.Http.HttpClient> doesn't support it, we recommen
3131
- <xref:System.Net.WebClient>
3232
- <xref:System.Net.ServicePoint>
3333

34-
<!--
34+
## See also
3535

36-
### Affected APIs
37-
38-
- `T:System.Net.WebRequest`
39-
- `T:System.Net.HttpWebRequest`
40-
- `T:System.Net.FtpWebRequest`
41-
- `T:System.Net.WebClient`
42-
- `T:System.Net.ServicePoint`
43-
44-
### Category
45-
46-
Networking
47-
48-
-->
36+
- [HttpWebRequest to HttpClient migration guide](../../../../fundamentals/networking/http/httpclient-migrate-from-httpwebrequest.md)

docs/fundamentals/syslib-diagnostics/syslib0014.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ The following APIs are marked as obsolete, starting in .NET 6. Using them in cod
1414
- <xref:System.Net.WebRequest.CreateHttp%2A?displayProperty=fullName>
1515
- <xref:System.Net.WebRequest.CreateDefault(System.Uri)?displayProperty=fullName>
1616
- <xref:System.Net.HttpWebRequest.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>
17-
- <xref:System.Net.ServicePointManager>
17+
- <xref:System.Net.ServicePointManager> (Starting in .NET 9)
18+
- <xref:System.Net.ServicePointManager.FindServicePoint%2A?displayProperty=fullName>
1819
- <xref:System.Net.WebClient.%23ctor>
1920

2021
To reduce the number of analyzer warnings, the <xref:System.Net.ServicePoint> class is not marked as obsolete, but all ways of obtaining its instances are.
@@ -60,3 +61,4 @@ For more information, see [Suppress warnings](obsoletions-overview.md#suppress-w
6061
## See also
6162

6263
- [WebRequest, WebClient, and ServicePoint are obsolete](../../core/compatibility/networking/6.0/webrequest-deprecated.md)
64+
- [HttpWebRequest to HttpClient migration guide](../networking/http/httpclient-migrate-from-httpwebrequest.md)

0 commit comments

Comments
 (0)