KEMBAR78
Preserve synchronization context in SaveChangesAsync for accepting changes · Issue #23971 · dotnet/efcore · GitHub
Skip to content

Preserve synchronization context in SaveChangesAsync for accepting changes #23971

@roji

Description

@roji

Since #10164, we have ConfigureAwait(false) everywhere; this can cause issues in certain data binding scenarios, when accepting changes triggers a UI change, which is no longer executed on the UI thread (e.g. #22841).

We could specifically use ConfigureAwait(true) in the code path leading to AcceptAllChanges (specifically in two places: DbContext.SaveChangesAsync, StateManager.SaveChangesAsync).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions