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

Unit of work instances may get incorrectly promoted to single instance lifetime #6458

Merged
merged 8 commits into from
Jul 20, 2022

Conversation

danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Jul 19, 2022

Backport of #6459 for release-7.7 branch

@danielmarbach danielmarbach changed the base branch from master to release-7.7 July 19, 2022 07:14
@danielmarbach danielmarbach marked this pull request as ready for review July 19, 2022 07:16
@danielmarbach danielmarbach force-pushed the fix-common-object-builder-uow-scope branch from 957c144 to 65907cf Compare July 19, 2022 07:21
danielmarbach and others added 2 commits July 20, 2022 12:15
…ve the correct IBuilder instance (#6460)

* Resolve the current builder per instance to make it possible to resolve the correct IBuilder instance

* InstancePerCall
@danielmarbach danielmarbach merged commit 7f819fc into release-7.7 Jul 20, 2022
@danielmarbach danielmarbach deleted the fix-common-object-builder-uow-scope branch July 20, 2022 10:46
danielmarbach added a commit that referenced this pull request Jul 20, 2022
* Add a number of tests for the common object builder behavior

* Fix instance per uow resolved via builder

* Remove local version of async local used in acceptance testing since we use InternalsVisibleTo

* Remove the static

* Move things into a property

* Add a test that uses Task.Run to fetch within the same scope

* Resolve the current builder per instance to make it possible to resolve the correct IBuilder instance (#6460)

* Resolve the current builder per instance to make it possible to resolve the correct IBuilder instance

* InstancePerCall

* Rename to parent and move fields
@danielmarbach danielmarbach added this to the 7.7.4 milestone Jul 20, 2022
@danielmarbach danielmarbach changed the title Fix common object builder uow scope Unit of work instances may get incorrectly promoted to single instance lifetime Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants