Skip to content

HttpClient.Dispose documentation says it is invoked by Finalize but the code does not support this statement #8333

@dmeeze

Description

@dmeeze

https://github.com/dotnet/dotnet-api-docs/blame/main/xml/System.Net.Http/HttpClient.xml#L922
image

None of the implementations I can find in Framework or Core support this statement. As far as I can see there are no explicit finalizers in the code at all.

https://github.com/microsoft/referencesource/blob/master/System/net/System/Net/Http/HttpClient.cs

The statement may well have once been true (I can't find out when that might have been) but it doesn't look like it's true today.

Metadata

Metadata

Assignees

Labels

Pri3Indicates issues/PRs that are low priorityarea-System.Net

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions