-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add a method GetRequiredSection on Configuration #40976
Add a method GetRequiredSection on Configuration #40976
Conversation
Note regarding the 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. |
Hi @jkotas, @maryamariyan I also created an issue : #40978 |
Hi @michelcedric, thank you for the contribution. Let's wait for API approval before reviewing this. I've marked it as NO MERGE for now. |
Tagging subscribers to this area: @maryamariyan |
We don't review PRs that are for unapproved API as the API may significantly change invalidating the review. For example this PR adds a method to an interface which breaks all implementers of that interface, this is a significant breaking change that will likely not be approved as-is. |
@ericstj |
@ericstj |
It's a public interface. Implementers exist outside of this repository. If some 3rd party implements |
… Implmenter breaking change
src/libraries/Microsoft.Extensions.Configuration/src/ConfigurationSection.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/tests/ConfigurationTest.cs
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationExtensions.cs
Show resolved
Hide resolved
We don't use a Refers to: src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/Resources/Strings.Designer.cs:1 in 494eb5e. [](commit_id = 494eb5e, deletion_comment = False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fix your remarks sorry it's my first contribution
src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationExtensions.cs
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/src/ConfigurationSection.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/tests/ConfigurationTest.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry it's my first contribution
Welcome, I'm happy you are here contributing 😄. There's no need to apologize.
This looks good to me. Thanks for getting this proposed and implemented.
src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationExtensions.cs
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationExtensions.cs
Outdated
Show resolved
Hide resolved
…src/ConfigurationExtensions.cs Co-authored-by: Eric Erhardt <[email protected]>
src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationExtensions.cs
Show resolved
Hide resolved
...Extensions.Configuration.Abstractions/ref/Microsoft.Extensions.Configuration.Abstractions.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @michelcedric
@maryamariyan @eerhardt is this API approved? Can we merge? |
yes I think the outstanding things were the NOMERGE label that @ericstj added earlier and the CI wasnt green yet. Otherwise it is good to go. |
Thanks, @maryamariyan -- merging since master is already 6.0.0. |
Hi @safern , @maryamariyan , @eerhardt |
release/5.0 is the branch for .NET 5 and .NET 5.1 will branch of off it once .NET5.0 is released into release/5.1. Master is the work that is targeting for .NET 6 next year. @mmitche is there any documentation on the branching model we have? |
@safern |
You can always use preview builds of the package 😄 -- we release daily builds of packages. Maybe later today or tomorrow we will have a build of this package with your figure. |
There is not a 5.1 AFAIK. So master is .NET 6 (next fall), and release/5.0 is the ongoing servicing for .NET 5. I don't think we have any docs on branching structure other than the constantly shifting record that is in Maestro. |
Note here is our roadmap which details planned releases: https://github.com/dotnet/core/blob/master/roadmap.md |
Ah right, .NET 6.0 is the next LTS. |
Add a method GetRequiredSection as a GetRequiredServices, it raised an exception.
In this casse if the section was not found it raised an InvalidOperationException
FIxes: #40978