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

WIP: Add support for IOptions<T> #16

Merged
merged 12 commits into from
Oct 23, 2023
Merged

WIP: Add support for IOptions<T> #16

merged 12 commits into from
Oct 23, 2023

Conversation

Tim-Maes
Copy link
Owner

@Tim-Maes Tim-Maes commented Oct 20, 2023

Fixes #15 and #14

It is now possible to register IOptions that uses the configuration to fill options object with matching properties from a section from the appsettings

These can be injected in your services.

Breaking change on how Autowiring is applied: You need to chain the .Register() method for it to return all configured services.

@Tim-Maes Tim-Maes changed the title WIP: Try support for IOptions<T> WIP: Add support for IOptions<T> Oct 21, 2023
@Tim-Maes Tim-Maes marked this pull request as ready for review October 23, 2023 07:24
@Tim-Maes Tim-Maes merged commit b766ba0 into master Oct 23, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking change: Offer fluent configuration API to users
1 participant