Skip to content

Add more remarks for Microsoft.Extensions.Configuration in our docs #8549

Open

Description

@maryamariyan

Comment by @KalleOlaviNiemitalo in dotnet/runtime#43869 (comment):


While implementing Microsoft.Extensions.Configuration.IConfiguration, I did not find any documentation on the following:

Activity

  1. added
    Pri3
    on Oct 21, 2022
  2. ghost added
    untriaged
    on Oct 21, 2022
  3. added and removed
    untriaged
    on Oct 21, 2022
  4. KalleOlaviNiemitalo commented on Oct 22, 2022

    @KalleOlaviNiemitalo

    This issue pertains to the IConfiguration interface. The .NET Runtime implements this interface in ConfigurationSection class by delegating to ConfigurationRoot, whose source code can be read to find out how that implementation behaves, but it is not clear whether other implementations have to behave the same way.

    A custom implementation of IConfiguration could potentially avoid the performance issue dotnet/runtime#65885 by having a Dictionary<string, IConfigurationSection> children field in each node and making IConfiguration.GetChildren() return the value collection of this dictionary, but this would cause risks related to thread safety and enumerator invalidation. It would be good to document the API contract.

  5. maryamariyan commented on Oct 25, 2022

    @maryamariyan
    ContributorAuthor

    @KalleOlaviNiemitalo would you be interested in improving the IConfiguration documentation by putting up a PR for this?

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

    Pri3area-Extensions-Configuration

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions