Avoid recomputing bindings multiple times and bind BindingContext first#24553
Merged
PureWeen merged 1 commit intoSep 6, 2024
Merged
Conversation
62ac3ce to
e6e4544
Compare
albyrock87
commented
Sep 2, 2024
| /// Applies all the current bindings to <see cref="BindingContext" />. | ||
| /// </summary> | ||
| protected void ApplyBindings() => ApplyBindings(skipBindingContext: false, fromBindingContextChanged: false); | ||
| protected void ApplyBindings() |
Contributor
Author
There was a problem hiding this comment.
This method appears unused, shall we [Obsolete] it?
e6e4544 to
c568f3b
Compare
Member
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
StephaneDelcroix
requested changes
Sep 6, 2024
StephaneDelcroix
approved these changes
Sep 6, 2024
Member
|
@albyrock87 @StephaneDelcroix this test seem to be failing when merging main to net9.0 |
Contributor
Author
|
@rmarinho looking at your PR #24759, I see that all the changes in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
The two unit tests shows the expectation we all have about bindings:
BindingContextbinding should apply before any property bindingBindingshould happen only once upon binding context inheritanceBenchmarks
Before
After
Issues Fixed
Fixes #10806