-
Notifications
You must be signed in to change notification settings - Fork 5k
Add support for types with parameterized ctors to config binder gen #86365
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
Conversation
Tagging subscribers to this area: @dotnet/area-extensions-configuration Issue DetailsThis PR adds initial support for config types that are bound using parameterized ctors, required properties, and/or init-only properties. Needs a follow up to
|
.../Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingSourceGenerator.Parser.cs
Outdated
Show resolved
Hide resolved
.../Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingSourceGenerator.Parser.cs
Outdated
Show resolved
Hide resolved
.../Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingSourceGenerator.Parser.cs
Outdated
Show resolved
Hide resolved
.../Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingSourceGenerator.Parser.cs
Outdated
Show resolved
Hide resolved
.../Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingSourceGenerator.Parser.cs
Outdated
Show resolved
Hide resolved
...libraries/Microsoft.Extensions.Configuration.Binder/tests/Common/ConfigurationBinderTests.cs
Show resolved
Hide resolved
.../Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingSourceGenerator.Parser.cs
Outdated
Show resolved
Hide resolved
...libraries/Microsoft.Extensions.Configuration.Binder/tests/Common/ConfigurationBinderTests.cs
Outdated
Show resolved
Hide resolved
.../Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingSourceGenerator.Parser.cs
Outdated
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.
Added a couple of comments please address them before merging.
8640d25
to
6cd9bf7
Compare
Will request review again after addressing #86365 (comment). |
b5bf629
to
3b4c0b6
Compare
Implementation is now in sync with reflection; including exception handling, parameter-property binding... PTAL. |
...raries/Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingGenerator.Parser.cs
Outdated
Show resolved
Hide resolved
Missed that, thanks. It passes. |
This PR adds support for config types that are bound using parameterized ctors, required properties, and/or init-only properties.