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

SolverConfiguration -> Action<SolverConfiguration> #129

Merged
merged 2 commits into from
Nov 1, 2022

Conversation

eduherminio
Copy link
Owner

Convert SolverConfiguration configuration parameter into Action<SolverConfiguration> configuration in all methods, so that it can be used in an (options => {...} ) or (options => options.somethingsomething ) fashion

See The setup "trick" that .NET libraries use and you should too video by @Elfocrash about this topic

Convert `SolverConfiguration configuration` parameter into `Action<SolverConfiguration> configuration` in all methods, so that it can be used in an `(options => {...} )` or `(options => options.somethingsomething )`` fashion
@eduherminio eduherminio self-assigned this Oct 31, 2022
This will maximize breaking changes reduction (i.e. when using named parameters)
There will still be a breaking change, since using `null` will be ambiguous until obsolete methods are removed.
@eduherminio eduherminio merged commit 5227963 into main Nov 1, 2022
@eduherminio eduherminio deleted the action-configuration branch November 1, 2022 15:37
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.

1 participant