Skip to content
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

Support config binding ext methods in options assembly #87733

Merged
merged 3 commits into from
Jun 20, 2023

Conversation

layomia
Copy link
Contributor

@layomia layomia commented Jun 17, 2023

Contributes to #83600.

Generator now intercepts calls to methods on OptionsBuilderConfigurationExtensions and OptionsConfigurationServiceCollectionExtensions. This adds to existing support for ConfigurationBinder methods.

With this change, all the expected/common entry points for configuration binding in ASP.NET + AOT scenarios are now covered. cc @eerhardt @DamianEdwards.

cc @andrewlock issues with #86348 should be fixed following this PR.

@layomia layomia added this to the 8.0.0 milestone Jun 17, 2023
@layomia layomia self-assigned this Jun 17, 2023
@ghost
Copy link

ghost commented Jun 17, 2023

Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.

Issue Details

That is, intercept calls to methods on OptionsBuilderConfigurationExtensions and OptionsConfigurationServiceCollectionExtensions. Contributes to #83600.

With this change, all the expected/common entry points for configuration binding in ASP.NET + AOT scenarios are now covered. cc @eerhardt @DamianEdwards.

cc @andrewlock issues with #86348 should be fixed following this PR.

Author: layomia
Assignees: layomia
Labels:

area-Extensions-Configuration

Milestone: 8.0.0

@layomia layomia force-pushed the binder-gen-options branch from e4a4b60 to cc511b0 Compare June 19, 2023 21:00
@layomia layomia merged commit 0b26395 into dotnet:main Jun 20, 2023
@layomia
Copy link
Contributor Author

layomia commented Jun 20, 2023

@andrewlock I verified that the scenarios in #86348 work following this PR. Please give it another go using our nightly runtime builds -

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants