Skip to content
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

IsSupported reports SocketsHttpHandler availability on different platforms #40271

Merged

Conversation

alnikola
Copy link
Contributor

@alnikola alnikola commented Aug 3, 2020

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
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
Copy link

ghost commented Aug 3, 2020

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
@@ -35,6 +35,8 @@ private void CheckDisposedOrStarted()
}
}

public static bool IsSupported => true;
Copy link
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
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)

Copy link
Member

@stephentoub stephentoub Aug 4, 2020

Choose a reason for hiding this comment

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

Copy link
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
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