Skip to content

PictureBox to use HttpClient instead of using WebRequest #1756

Closed

Description

@RussKie
  • .NET Core Version: 3.0

Problem description:

PictureBox uses an instance of WebRequest to load images.
It needs to be replaces with a cached instance of HttpClient as suggest in #1696 (comment)

Expected behavior:

Minimal repro:

https://github.com/dotnet/winforms/blob/release/3.0/src/System.Windows.Forms/src/System/Windows/Forms/PictureBox.cs#L558-L564

Activity

  1. added
    help wanted
    good first issue
    tenet-performance
    code cleanup
    on Sep 4, 2019
  2. added this to the 5.0 milestone on Sep 4, 2019
  3. ghost added
    🚧 work in progress
    on Sep 22, 2019
  4. ghost removed
    🚧 work in progress
    on Oct 1, 2019
  5. flerka commented on Oct 16, 2019

    @flerka

    @neldridg @RussKie is it still available? May I take it?

  6. RussKie commented on Oct 16, 2019

    @RussKie
    ContributorAuthor

    @flerka it is still up for grabs, so you're welcome to have a go at it.
    You may find discussions in #1952 useful.
    Thank you

  7. ghost added
    🚧 work in progress
    on Oct 18, 2019
  8. ghost removed
    🚧 work in progress
    on Feb 14, 2020
  9. modified the milestones: 5.0 Previews 1-4, 5.0 on Apr 20, 2020
  10. modified the milestones: 5.0, Future on Sep 1, 2020
  11. kant2002 commented on May 19, 2021

    @kant2002
    Contributor

    @RussKie I see value for ILLink/NativeAOT scenario to be able to disable reading data from the web streams. I agree that this feature allow load data from URLs but this feature bring additional dependency which may be not wanted. Is it possible to put this feature (loading images from remote addresses) behind AppContext switche similar to how it is proposed here dotnet/aspnetcore#31561 (comment)
    I hope that allow to have WinForms to be more pay for play

  12. RussKie commented on May 19, 2021

    @RussKie
    ContributorAuthor

    Is it possible to put this feature (loading images from remote addresses) behind AppContext switche similar to how it is proposed here dotnet/aspnetcore#31561 (comment)

    We can certainly consider this.
    If you have any deeper thoughts on this subject and proposals - please feel free to share. We also accept pull requests ;)

  13. ghost added
    🚧 work in progress
    on Feb 12, 2022
  14. ghost removed
    🚧 work in progress
    on Feb 14, 2022
  15. ghost added
    🚧 work in progress
    on Feb 14, 2022
  16. ghost removed this from the Future milestone on Mar 10, 2022
  17. ghost removed
    🚧 work in progress
    on Mar 10, 2022
  18. ghost locked as resolved and limited conversation to collaborators on Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code cleanupgood first issuehelp wantedtenet-performance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions