Skip to content

Add .ConfigureAwait(false) on (thread) context irrelevant operations#3977

Merged
rockfordlhotka merged 4 commits into
mainfrom
dev/http-call-must-not-return-on-await-context
Jun 1, 2024
Merged

Add .ConfigureAwait(false) on (thread) context irrelevant operations#3977
rockfordlhotka merged 4 commits into
mainfrom
dev/http-call-must-not-return-on-await-context

Conversation

@StefanOssendorf

Copy link
Copy Markdown
Contributor

Add some .ConfigureAwait(false) to remove pressure on a sync context when available

Motivation for our WPF application:
We experience a lot of work and pressure on the UI thread due to the current handling of async calls to a remote data portal.
With this PR that should be solved because the low level operations are now free to use a thread pool thread to perform non UI related work.
The PR only adds .ConfigureAwait(false); to awaits where the result can't be known to the UI thread.

@rockfordlhotka Should we consider this a breaking change?

Comment thread Source/Csla/DataPortalClient/DataPortalProxy.cs
@rockfordlhotka rockfordlhotka merged commit 59035a2 into main Jun 1, 2024
@rockfordlhotka rockfordlhotka deleted the dev/http-call-must-not-return-on-await-context branch June 1, 2024 18:38
@github-actions

github-actions Bot commented Jun 2, 2025

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

2 participants