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

Removed HttpClientHandler dead code and folded .Core file. #38408

Merged

Conversation

ManickaP
Copy link
Member

Fixes #38401

@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ManickaP ManickaP requested a review from a team June 25, 2020 19:57
@ghost
Copy link

ghost commented Jun 25, 2020

Tagging subscribers to this area: @dotnet/ncl
Notify danmosemsft if you want to be subscribed.

@stephentoub
Copy link
Member

Thanks.

{
if (_disposed)
{
throw new ObjectDisposedException(GetType().ToString());

Choose a reason for hiding this comment

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

Wouldn't be calling GetType().ToString() expensive, why not use ```typeof```` directly

Copy link
Member

Choose a reason for hiding this comment

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

GetType() will be the derived type if there is one. And while it's more expensive than a const, it pales in comparison to the cost of the exception that's about to be thrown.

@stephentoub stephentoub merged commit 18d3de1 into dotnet:master Jun 25, 2020
@ManickaP ManickaP deleted the mapichov/38401_remove_unused_field branch June 26, 2020 06:12
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 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.

HttpClientHandler._operationStarted is never set to true
5 participants