Skip to content

IsSupported reports SocketsHttpHandler availability on different platforms - #40271

Merged
alnikola merged 2 commits into
dotnet:masterfrom
alnikola:alnikola/39489-socks-handler-is-supported
Aug 3, 2020
Merged

IsSupported reports SocketsHttpHandler availability on different platforms#40271
alnikola merged 2 commits into
dotnet:masterfrom
alnikola:alnikola/39489-socks-handler-is-supported

Conversation

@alnikola

@alnikola alnikola commented Aug 3, 2020

Copy link
Copy Markdown
Contributor

Fixes #39489

@alnikola alnikola added this to the 5.0.0 milestone Aug 3, 2020
@alnikola
alnikola requested a review from a team August 3, 2020 15:15
@Dotnet-GitSync-Bot

Copy link
Copy Markdown
Collaborator

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@ghost

ghost commented Aug 3, 2020

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@alnikola
alnikola merged commit a1c19db into dotnet:master Aug 3, 2020
@alnikola
alnikola deleted the alnikola/39489-socks-handler-is-supported branch August 3, 2020 16:28
}
}

public static bool IsSupported => true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needed xml doc comments.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add it, but could you please clarify what are the rules about them?
I see a lot of existing public properties without comments e.g. Expected100ContinueTimeout and AFAIK the xml doc content doesn't get automatically copied to dotnet/dotnet-api-docs repo. Previously, I had to manually create PR in the doc repo for new members (see HttpRequestException.StatusCode)

@stephentoub stephentoub Aug 4, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Note the comment the bot added to the PR: #40271 (comment). The XML comments on new APIs are then ported to the docs.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a strange API. What value are we going to return for example on iOS where the API does not work fully and we'll discourage usage of it (probably using some analyzers) because it's inefficient?

@alnikola
alnikola restored the alnikola/39489-socks-handler-is-supported branch August 4, 2020 09:51
@alnikola
alnikola deleted the alnikola/39489-socks-handler-is-supported branch August 4, 2020 10:41
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SocketsHttpHandler feature flag

5 participants