Skip to content

[Uri] URI thread safety documentation #24239

Closed
dotnet/dotnet-api-docs
#4267

Description

@ohadschn

The URI class is immutable, and glancing at the code it seems as though thread-safety is considered. However, the URI docs say "Any instance members are not guaranteed to be thread safe".

Is that really the case? If not, and the class is thread-safe, the docs should be updated.

Activity

  1. svick commented on Nov 25, 2017

    @svick
    Member

    As far as I can tell from the discussion at https://github.com/dotnet/corefx/issues/13107, even though Uri does use locks, it is not thread-safe.

    I believe the steps to take here are:

    1. Fix https://github.com/dotnet/corefx/issues/13107, so Uri no longer locks on a string.
    2. Check all code in Uri for thread-safety.
    3. If Uri actually contains code that is not thread-safe, fix it.
    4. Update the documentation, as you suggested.
  2. davidsh commented on Nov 25, 2017

    @davidsh
    Contributor

    Also feel free to submit doc suggestions directly to the new docs location:
    https://docs.microsoft.com/en-us/dotnet/api/system.uri?view=netcore-2.0

    Clicking on the 'Edit' link will take you to the repo and allow you to submit PR's for suggestions.

  3. ohadschn commented on Nov 25, 2017

    @ohadschn
    Author

    @davidsh thank you for the reference, but as svick explained, these is engineering work involved before the docs can be updated.

  4. changed the title [-]URI thread safety documentation[/-] [+][Uri] URI thread safety documentation[/+] on May 2, 2018
  5. transferred this issue fromdotnet/corefxon Jan 31, 2020
  6. added this to the 5.0 milestone on Jan 31, 2020
  7. self-assigned this
    on Mar 5, 2020
  8. ghost locked as resolved and limited conversation to collaborators on Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Netdocumentation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions